Author Topic: Custom Maps list  (Read 14091 times)

Offline gavrant

  • (Almost) retired dev
  • Moderator
  • ***
  • Posts: 598
    • View Profile
Re: Custom Maps list
« Reply #30 on: 28-04-2014, 22:04:30 »
When I remove that comma form the one without NCOrifleData  I get a long error that basically says
Quote
****** waw_cs_westwall, gpm_cq, 64 - 2014-04-28 15:41:36 (wall time: 68.6367645264) ******
[68.6367645264] gameplayPlugin::warn: exception creating plugin limitKit {'slot': 0, 'kit': 'GS_Scout', 'limit': 0.19, 'team': 1}:
  Kit 'gs_scout' is not defined or has not been loaded for this map.
Traceback (most recent call last):
  File "python/game/gameplayPlugin.py", line 270, in bf2_init
  File "python/game/plugins/limitKit.py", line 650, in __init__
  File "python/game/plugins/limitKit.py", line 504, in __init__
  File "python/game/plugins/limitKit.py", line 453, in __init__
  File "python/game/utilities.py", line 650, in verifyTemplateExistence
Exception: Kit 'gs_scout' is not defined or has not been loaded for this map.
  for every kit position.
My guess is that the map is not properly packed with the mods\fh2\pack-map.py script.
When you launch the map in game, does the kit selection screen look completely messed up?

Quote
When I remove that comma from the other one the error changes to this:

Quote
****** waw_cs_westwall, gpm_cq, 64 - 2014-04-28 15:45:52 (wall time: 65.5680999756) ******
[65.5680999756] perMapData::warn: Error executing waw_cs_westwall's mapdata.py:
  invalid syntax (mapdata.py, line 92)
Traceback (most recent call last):
  File "python/game/perMapData.py", line 37, in getMapData
  File "mods/fh2\levels\waw_cs_westwall\mapdata.py", line 92
    rifleNCO = [plugin(NCOrifleData, kits = ('WaW_Ge_NCO0_MP40', 'WaW_US_NCO1_M1A1')]
                                                                                    ^
SyntaxError: invalid syntax

[65.5680999756] gameplayPlugin::warn: exception in plugin.bf2_init <game.plugins.limitKit.limitKitNCO object at 0x11AD3F90>:
  Couldn't find NCO kit info for map waw_cs_westwall. Update NCOrifleData.py or provide custom map info via mapdata.py.
Traceback (most recent call last):
  File "python/game/gameplayPlugin.py", line 279, in bf2_init
  File "python/game/plugins/limitKit.py", line 668, in bf2_init
Exception: Couldn't find NCO kit info for map waw_cs_westwall. Update NCOrifleData.py or provide custom map info via mapdata.py.

If any Custom map worker had fixed this, let me know.
Replace
Quote
    rifleNCO = [plugin(NCOrifleData, kits = ('WaW_Ge_NCO0_MP40', 'WaW_US_NCO1_M1A1')]
with
Quote
    rifleNCO = [plugin(NCOrifleData, kits = ('WaW_Ge_NCO0_MP40', 'WaW_US_NCO1_M1A1')),]
Note one additional ")" and "," at the end.

Offline GeoPat

  • Jr. Member
  • **
  • Posts: 415
    • View Profile
Re: Custom Maps list
« Reply #31 on: 28-04-2014, 22:04:28 »
Here's what that change got me:

Quote
****** waw_cs_westwall, gpm_cq, 64 - 2014-04-28 16:30:40 (wall time: 62.7108764648) ******
[62.7108764648] perMapData::warn: Error executing waw_cs_westwall's mapdata.py:
  cannot import name NCORifleData
Traceback (most recent call last):
  File "python/game/perMapData.py", line 37, in getMapData
  File "mods/fh2\levels\waw_cs_westwall\mapdata.py", line 1, in ?
    from game.plugins import plugin, limitKit, ticketLoss, NCORifleData, linkCPs
ImportError: cannot import name NCORifleData

[62.7108764648] gameplayPlugin::warn: exception in plugin.bf2_init <game.plugins.limitKit.limitKitNCO object at 0x113B2F90>:
  Couldn't find NCO kit info for map waw_cs_westwall. Update NCOrifleData.py or provide custom map info via mapdata.py.
Traceback (most recent call last):
  File "python/game/gameplayPlugin.py", line 279, in bf2_init
  File "python/game/plugins/limitKit.py", line 668, in bf2_init
Exception: Couldn't find NCO kit info for map waw_cs_westwall. Update NCOrifleData.py or provide custom map info via mapdata.py.

The map runs fine and the kits don't look messed up.  I haven't been able to test if anyone can use the NCO kit or not.

This map worked fine until 2.46 so I think it was packed right.  really the PY WARN message is just annoying.  I haven't noticed any real problem.

Thanks for trying to help me.  I got bad weather here so I will be off for awhile.

Offline gavrant

  • (Almost) retired dev
  • Moderator
  • ***
  • Posts: 598
    • View Profile
Re: Custom Maps list
« Reply #32 on: 28-04-2014, 22:04:03 »
There's a typo in the tutorial - it's called "NCOrifleData", not "NCORifleData" (note the small "r"). Fix this in the first line, and it will work.

And this "annoying" PY WARN means that you won't be able to select the secondary NCO kits, so you have a real problem.

Offline GeoPat

  • Jr. Member
  • **
  • Posts: 415
    • View Profile
Re: Custom Maps list
« Reply #33 on: 29-04-2014, 04:04:11 »
changing the "R" to "r" basically worked.  I still got some error about kit not defined so I changed the custom kits to standard kits that I knew worked.  Finally no PY WARN. 

Thanks Gavrant

I guess the tutorial should look like this:
 
Quote
from game.plugins import plugin, limitKit, ticketLoss, NCOrifleData

kit_limits = [
    plugin(limitKit, team = 1, kit = 'GM_Limited_Assault_MP40_K98', slot = 1, limit = 0.07),
    plugin(limitKit, team = 2, kit = 'BA_Limited_Assault_TommygunD_No4', slot = 1, limit = 0.07),
    plugin(limitKit, team = 1, kit = 'GM_Limited_Support_MG34_K98', slot = 3, limit = 0.09),
    plugin(limitKit, team = 2, kit = 'BA_Limited_Support_Bren_No4', slot = 3, limit = 0.1),
]
tickets = [
   plugin(ticketLoss, ticketLoss1 = 4, ticketLoss2 = 4)

]

rifleNCO = [plugin(NCOrifleData, kits = ('GM_NCOMP40', 'BA_NCOTommygunS')),]

gpm_cq = {
  64: tickets + kit_limits + rifleNCO,
  16: kit_limits + rifleNCO,
}

And make sure the kits are good to begin with.

Offline PapillonFH

  • Jr. Member
  • **
  • Posts: 117
    • View Profile
Re: Custom Maps list
« Reply #34 on: 29-04-2014, 06:04:42 »
A hooray to python syntax and case-sensitivity :-)

Offline Mudzin

  • Jr. Member
  • **
  • Posts: 692
    • View Profile
Re: Custom Maps list
« Reply #35 on: 29-04-2014, 11:04:30 »
If you want to check if NCO kit works, just become a commander! ;)

Offline gavrant

  • (Almost) retired dev
  • Moderator
  • ***
  • Posts: 598
    • View Profile
Re: Custom Maps list
« Reply #36 on: 29-04-2014, 14:04:23 »
The typos in the tutorial have been fixed...

Offline Ivancic1941

  • Jr. Member
  • **
  • Posts: 972
    • View Profile
Re: Custom Maps list
« Reply #37 on: 22-09-2015, 18:09:51 »
Can somebody upload for me map Supplies for Malta and Thyrennian sea??? I want to look this maps and try Gladiator,U-47 and rest of FH2 ships.Tryed old download links but all are broken since 2011. If someone have this maps,please..
Floppy Wardisc or Floppy Wierdbear

Offline gamerjer

  • Jr. Member
  • **
  • Posts: 173
    • View Profile
Re: Custom Maps list
« Reply #38 on: 22-09-2015, 23:09:50 »
Can somebody upload for me map Supplies for Malta and Thyrennian sea??? I want to look this maps and try Gladiator,U-47 and rest of FH2 ships.Tryed old download links but all are broken since 2011. If someone have this maps,please..
i guess the folks of WAW need to have it somewhere

it looks nice indeed seems like it had ported ships in it from fh1 :) (this is not a pic i took i found it on the internet) :P

Offline Ivancic1941

  • Jr. Member
  • **
  • Posts: 972
    • View Profile
Re: Custom Maps list
« Reply #39 on: 25-09-2015, 14:09:20 »
So nobody has Supplies?? Stubban?
« Last Edit: 25-09-2015, 14:09:58 by Ivancic1941 »
Floppy Wardisc or Floppy Wierdbear

Offline RADIOSMERSH

  • Jr. Member
  • **
  • Posts: 166
    • View Profile
Re: Custom Maps list
« Reply #40 on: 25-09-2015, 14:09:30 »
So nobody has Supplies?? Stubban?
Here you go:
https://yadi.sk/d/wDnBgy020InsK

May not work with recent version though, as I packed this more than 3 years ago.

Offline Ivancic1941

  • Jr. Member
  • **
  • Posts: 972
    • View Profile
Re: Custom Maps list
« Reply #41 on: 25-09-2015, 20:09:42 »
Radiomersh:THANK YOU!!!!! Yes,it has what I wanted,super-awsome Supplies for Malta. Waw should make again this event.
Once more, Radionersh thank you.
Floppy Wardisc or Floppy Wierdbear

Offline gamerjer

  • Jr. Member
  • **
  • Posts: 173
    • View Profile
Re: Custom Maps list
« Reply #42 on: 25-09-2015, 23:09:39 »
just wondering why are the ported ships never used in official fh2? :P i guess the quality was not good enough? or no good skin/model? or maps to use it? :P
or is it impossible to let the bots drive it (because the  bf2 engine never had drivable battleships)

Offline Slayer

  • Freeze Veteran
  • FH-Betatester
  • ***
  • Posts: 3.792
    • View Profile
Re: Custom Maps list
« Reply #43 on: 26-09-2015, 00:09:24 »
Naval warfare comes with many problems, the most infamous one is that you can't walk on deck, because you will die. So you can only have fixed positions for players on the ships.

Offline gamerjer

  • Jr. Member
  • **
  • Posts: 173
    • View Profile
Re: Custom Maps list
« Reply #44 on: 26-09-2015, 10:09:18 »
Naval warfare comes with many problems, the most infamous one is that you can't walk on deck, because you will die. So you can only have fixed positions for players on the ships.
oh lol thats quite lame indeed  :-X so its quite impossible for naval warfare in official fh2 =-\