Author Topic: Sammatus 64p Coop 2.53  (Read 883 times)

Offline PoliorcetE

  • Jr. Member
  • **
  • Posts: 67
  • En lutte contre le crabe...
    • View Profile
Sammatus 64p Coop 2.53
« on: 01-06-2018, 15:06:04 »
hi
since 2.53 it's miss two kit in Finn side.
i've got a CTD after i choose a kit.
i tried to fix it with FHluncher but nothing change.
i'm the only one how have this pb ?

A+
"S’il n’y avait pas la science, malheureux cloportes suintants d’ingratitude aveugle et d’ignorance crasse, s’il n’y avait pas la Science, combien d’entre nous pourraient profiter de leur cancer pendant plus de cinq ans ?" Pierre Desproges.

Offline jan_kurator

  • FH-Betatester
  • ***
  • Posts: 2.250
  • Magnificent Mustard
    • View Profile
Re: Sammatus 64p Coop 2.53
« Reply #1 on: 01-06-2018, 16:06:21 »
Sammatus has no official singleplayer support. You need to contact the author of this patch to get it fixed.  :)

Offline Knochenlutscher

  • Jr. Member
  • **
  • Posts: 52
  • Personal Text
    • View Profile
Re: Sammatus 64p Coop 2.53
« Reply #2 on: 01-06-2018, 19:06:23 »
That or try this until the new Pack is up.

Make aBackup of Sammatus_Coop folder!!!

Go to:
...EA GAMES\Battlefield 2\mods\fh2\levels\sammatus_coop

1. edit (open with Text-Editor or Wordpad):
mapdata.py

select all and copy and paste this over
Code: [Select]
from game.plugins import plugin, limitKit, push, NCOrifleData, teamSPs, spawnerCondition, ticketLoss

kit_limits = [
plugin(limitKit, team = 1, slot = 0, limit = 4.0/32.0, kit = "SE_Scout", soldier = "se_light"),
plugin(limitKit, team = 1, slot = 1, limit = 6.0/32.0, kit = "SE_SMGAssault_Limited", soldier = "se_heavy"),
plugin(limitKit, team = 1, slot = 2, limit = 9.0/32.0, kit = "SE_Rifleman", soldier = "se_light"),
plugin(limitKit, team = 1, slot = 3, limit = 6.0/32.0, kit = "SE_LMG_DP28_Limited", soldier = "se_heavy"),
plugin(limitKit, team = 1, slot = 4, limit = 4.0/32.0, kit = "SE_Engineer", soldier = "se_light"),
plugin(limitKit, team = 1, slot = 5, limit = 4.0/32.0, kit = "SE_AntiTank_Limited", soldier = "se_light"),

plugin(limitKit, team = 2, slot = 0, limit = 4.0/32.0, kit = "RE_Scout", soldier = "re_light_soldier"),
plugin(limitKit, team = 2, slot = 1, limit = 6.0/32.0, kit = "RE_SMGAssault", soldier = "re_heavy_soldier"),
plugin(limitKit, team = 2, slot = 2, limit = 9.0/32.0, kit = "RE_RifleAssault", soldier = "re_light_soldier"),
plugin(limitKit, team = 2, slot = 3, limit = 6.0/32.0, kit = "RE_LMG_Limited", soldier = "re_light_soldier"),
plugin(limitKit, team = 2, slot = 4, limit = 4.0/32.0, kit = "RE_Engineer", soldier = "re_nco_soldier"),
plugin(limitKit, team = 2, slot = 5, limit = 4.0/32.0, kit = "RE_SMGAssault_pps42", soldier = "re_light_soldier"),

plugin(NCOrifleData, kits = ('SE_NCO', 'RE_NCO'), soldiers = ("se_sgt", "re_nco_soldier")),
]

push_64 = [
    plugin(push, source = 'conq_64_37th_Guards_Army_Corp_Mironov', target = 'conq_64_vt_line_east', attacker = 2,),
    plugin(push, source = 'conq_64_37th_Guards_Army_Corp_Mironov', target = 'conq_64_vt_line_center', attacker = 2,),
    plugin(push, source = 'conq_64_37th_Guards_Army_Corp_Mironov', target = 'conq_64_vt_line_west', attacker = 2),
    plugin(push, source = 'conq_64_vt_line_east, conq_64_vt_line_center' , target = 'conq_64_Sammatus_village', attacker = 2),
    plugin(push, source = 'conq_64_vt_line_center ,conq_64_vt_line_west' , target = 'conq_64_Lakehouse', attacker = 2),

   
]


tickets_16 = [
plugin(ticketLoss, ticketLoss1 = 10, ticketLoss2 = 10)
]

tickets_64 = [
plugin(ticketLoss, ticketLoss1 = 15, ticketLoss2 = 15)
]


spawns_64 = [
  plugin(teamSPs), # Auto-fill
]
spawns_16 = [
  plugin(teamSPs), # Auto-fill
]

spawnerConditions = [
    plugin(spawnerCondition, team = 2, spawner = 'conq_64_37th_Guards_Army_Corp_Mironov_t34', we_dont_own = 'conq_64_vt_line_east and conq_64_vt_line_center and conq_64_vt_line_west'),
]


gpm_coop = {
  64: kit_limits + push_64 + spawns_64 + spawnerConditions + tickets_64,
  16: spawns_16 + kit_limits + tickets_16,
}


2. open Server.zip and  edit (open with Text-Editor or Wordpad):
Init.con
select all and copy and paste this over
Code: [Select]
rem  Generated by BF2Editor
if v_arg1 == BF2Editor

run Heightdata.con
LevelSettings.InitWorld
run Terrain.con BF2Editor
run StaticObjects.con BF2Editor
run Sounds.con
run Sky.con BF2Editor
run EditorGamePlayObjects.con host
UndergrowthEditable.create
Undergrowth.load Levelssammatus_coop
run OvergrowthOvergrowth.con
Overgrowth.editorEnable 1
run AmbientObjects.con BF2Editor
run Water.con
run TriggerableTemplates.con BF2Editor

else

run Heightdata.con
run Terrain.con v_arg2
run Sky.con v_arg2
run CompiledRoads.con
run Sounds.con
run tmp.con v_arg1
Undergrowth.load Levelssammatus_coop
run OvergrowthOvergrowth.con
run OvergrowthOvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con

endIf

rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------

gameLogic.setTeamName 1 FI
gameLogic.setTeamName 2 RU

gameLogic.setTeamLanguage 1 FH2Finnish
gameLogic.setTeamLanguage 2 FH2Russian

gameLogic.setTeamFlag 0 flag_neutral
gameLogic.setTeamFlag 1 flag_se
gameLogic.setTeamFlag 2 flag_ru

gameLogic.setKit 1 0 SE_Scout se_light
gameLogic.setKit 2 0 RE_Scout re_light_soldier

gameLogic.setKit 1 1 SE_SMGAssault_Limited se_heavy
gameLogic.setKit 2 1 RE_SMGAssault re_heavy_soldier

gameLogic.setKit 1 2 SE_Rifleman se_light
gameLogic.setKit 2 2 RE_RifleAssault re_light_soldier

gameLogic.setKit 1 3 SE_LMG_DP28_Limited se_heavy
gameLogic.setKit 2 3 RE_LMG_Limited re_light_soldier

gameLogic.setKit 1 4 SE_Engineer se_light
gameLogic.setKit 2 4 RE_Engineer re_nco_soldier

gameLogic.setKit 1 5 SE_AntiTank_Limited se_light
gameLogic.setKit 2 5 RE_SMGAssault_pps42 re_light_soldier

gameLogic.setKit 1 6 SE_NCO se_sgt
gameLogic.setKit 2 6 RE_NCO re_nco_soldier

rem -----------------------------------------------------------------------------

gameLogic.setBeforeSpawnCamera 14147-198 -43-80

if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix sammatus
else
texturemanager.customTextureSuffix sammatus
endIf
rem -----------------------------------------------------------------------------

GameLogic.MaximumLevelViewDistance 175

rem -----------------------------------------------------------------------------

gameLogic.setDefaultNumberOfTicketsEx 16 1 200
gameLogic.setDefaultNumberOfTicketsEx 16 2 200
gameLogic.setDefaultNumberOfTicketsEx 32 1 300
gameLogic.setDefaultNumberOfTicketsEx 32 2 300
gameLogic.setDefaultNumberOfTicketsEx 64 1 300
gameLogic.setDefaultNumberOfTicketsEx 64 2 350
gameLogic.setDefaultNumberOfTicketsEx 128 1 50
gameLogic.setDefaultNumberOfTicketsEx 128 2 50
gameLogic.setDefaultTimeToNextAIWave 8
gameLogic.setTicketLossAtEndPerMin 1000
gameLogic.setTicketLossPerMin 1 10
gameLogic.setTicketLossPerMin 2 10

rem -----------------------------------------------------------------------------

rem -----------------------------------------------------------------------------

renderer.globalStaticMeshLodDistanceScale 1
renderer.globalBundleMeshLodDistanceScale 1
renderer.globalSkinnedMeshLodDistanceScale 1

3. open Server.zip and edit (open with Text-Editor or Wordpad):
tmp.con
select all and copy and paste this over
Code: [Select]
rem $fh2_donotread
rem *** autogenerated ***

rem *** KIT LOADERS ***
run ../../objects/kits/re/re_engineer.inc
run ../../objects/kits/re/re_lmg_limited.inc
run ../../objects/kits/re/re_nco.inc
run ../../objects/kits/re/re_rifleassault.inc
run ../../objects/kits/re/re_scout.inc
run ../../objects/kits/re/re_smgassault.inc
run ../../objects/kits/re/re_smgassault_pps42.inc
run ../../objects/kits/se/se_antitank_limited.inc
run ../../objects/kits/se/se_engineer.inc
run ../../objects/kits/se/se_lmg_dp28_limited.inc
run ../../objects/kits/se/se_nco.inc
run ../../objects/kits/se/se_rifleman.inc
run ../../objects/kits/se/se_scout.inc
run ../../objects/kits/se/se_smgassault_limited.inc
run ../../objects/kits/spawnable/re_pickupantitankptrd.inc
run ../../objects/kits/spawnable/re_pickupassaultpps42.inc
run ../../objects/kits/spawnable/re_pickupmg_dt.inc
run ../../objects/kits/spawnable/re_pickupmortar.inc
run ../../objects/kits/spawnable/re_pickupsniper.inc
run ../../objects/kits/spawnable/se_pickupassault_suomistick.inc
run ../../objects/kits/spawnable/se_pickupmg_ls26.inc
run ../../objects/kits/spawnable/se_pickuppanzerschreck.inc
run ../../objects/kits/spawnable/se_pickupsniper.inc
run ../../objects/kits/spawnable/se_pickuptankhunter_faust.inc

rem *** KITSETS ***
run ../../objects/kits/re/re_kits.inc
run ../../objects/kits/se/se_kits.inc

rem *** KIT SPAWNERS ***
run ../../objects/kits/re/re_kits_spawner.inc
run ../../objects/kits/se/se_kits_spawner.inc

rem *** END OF AUTO_GENERATED PART ***
rem $fh2_read


run ../../objects/Common/CommonSpawners.con
run ../../objects/Vehicles/Land/RU/t34_76_m41/t34_76_m41_236.inc
run ../../objects/Common/FewerGrenades_sammatus.inc

rem lock
ObjectTemplate.activeSafe PlayerControlObject t20
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.activeSafe PlayerControlObject t20_mggunner
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.activeSafe PlayerControlObject t20_Passenger1
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.activeSafe PlayerControlObject t20_Passenger2
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.activeSafe PlayerControlObject pak40_static_fi
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.activeSafe PlayerControlObject m1937_45mm_static
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.activeSafe PlayerControlObject m1937_45mm
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.activeSafe PlayerControlObject m1937_45mm_shield_PCO
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.activeSafe PlayerControlObject pak40_fi
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.activeSafe PlayerControlObject pak40_shield_PCO
ObjectTemplate.dontClearTeamOnExit 1

physics.airDensityZeroAtHeight 3000
windmanager.globalWindSpeed 3
windmanager.globalWinddirection 0/0/1

"Klaatu... verata... n... Necktie. Nectar. Nickel. Noodle."

Offline PoliorcetE

  • Jr. Member
  • **
  • Posts: 67
  • En lutte contre le crabe...
    • View Profile
Re: Sammatus 64p Coop 2.53
« Reply #3 on: 01-06-2018, 20:06:30 »
@Knochenlutscher
thx for the solution, i've tried twice, the kit missing come back but......it's miss lot of trees   ???
i wait now for an update of Coop map
thx again  :)
« Last Edit: 25-07-2018, 17:07:16 by PoliorcetE »
"S’il n’y avait pas la science, malheureux cloportes suintants d’ingratitude aveugle et d’ignorance crasse, s’il n’y avait pas la Science, combien d’entre nous pourraient profiter de leur cancer pendant plus de cinq ans ?" Pierre Desproges.

Offline VolkssturmGewehr

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Re: Sammatus 64p Coop 2.53
« Reply #4 on: 01-06-2018, 22:06:12 »
It's missing trees because there's an error in the init.con code where it says "run OvergrowthOvergrowth.con".

Offline Knochenlutscher

  • Jr. Member
  • **
  • Posts: 52
  • Personal Text
    • View Profile
Re: Sammatus 64p Coop 2.53
« Reply #5 on: 05-06-2018, 12:06:22 »
That's because Sammatus has been worked on since the Coop Map.
You can see it by weighing more than the Coop Zips. So actually a few Updates.
Just the above entries Fix, and my Lightmaps are still screwed.
Can't tell for trees, they look as before. But the Lightmaps for Objects are quirked.

I even went so far taking Sammatus Folder and only adding the required Coop stuff (COOP/Navmesh Data).
But this is tense fiddling, only if you knew which files to paste over.
If you fail it breaks the folder, instant CTD or if you succeed,
you get proper mesh, lightmaps etc. In this variant I have everything normal, trees,
shadows, lights, textures.

Of course you can wait until this is user friendly and finally done.
"Klaatu... verata... n... Necktie. Nectar. Nickel. Noodle."

Offline Halifax

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Sammatus 64p Coop 2.53
« Reply #6 on: 25-07-2018, 14:07:08 »
Thanks for the solution Knochenlutscher.

select all and copy and paste in file init.con,

Code: [Select]
rem *** Generated by BF2Editor ***
if v_arg1 == BF2Editor

run Heightdata.con
LevelSettings.InitWorld
run Terrain.con BF2Editor
run StaticObjects.con BF2Editor
run Sounds.con
run Sky.con BF2Editor
run Editor/GamePlayObjects.con host
UndergrowthEditable.create
Undergrowth.load Levels\sammatus_coop\
run Overgrowth/Overgrowth.con
Overgrowth.editorEnable 1
run AmbientObjects.con BF2Editor
run Water.con
run TriggerableTemplates.con BF2Editor

else

run Heightdata.con
run Terrain.con v_arg2
run Sky.con v_arg2
run CompiledRoads.con
run Sounds.con
run tmp.con v_arg1
Undergrowth.load Levels\sammatus_coop\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con

endIf

rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------

gameLogic.setTeamName 1 "FI"
gameLogic.setTeamName 2 "RU"

gameLogic.setTeamLanguage 1 "FH2Finnish"
gameLogic.setTeamLanguage 2 "FH2Russian"

gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_se"
gameLogic.setTeamFlag 2 "flag_ru"

gameLogic.setKit 1 0 "SE_Scout" "se_light"
gameLogic.setKit 2 0 "RE_Scout" "re_light_soldier"

gameLogic.setKit 1 1 "SE_SMGAssault_Limited" "se_heavy"
gameLogic.setKit 2 1 "RE_SMGAssault" "re_heavy_soldier"

gameLogic.setKit 1 2 "SE_Rifleman" "se_light"
gameLogic.setKit 2 2 "RE_RifleAssault" "re_light_soldier"

gameLogic.setKit 1 3 "SE_LMG_DP28_Limited" "se_heavy"
gameLogic.setKit 2 3 "RE_LMG_Limited" "re_light_soldier"

gameLogic.setKit 1 4 "SE_Engineer" "se_light"
gameLogic.setKit 2 4 "RE_Engineer" "re_nco_soldier"

gameLogic.setKit 1 5 "SE_AntiTank_Limited" "se_light"
gameLogic.setKit 2 5 "RE_SMGAssault_pps42" "re_light_soldier"

gameLogic.setKit 1 6 "SE_NCO" "se_sgt"
gameLogic.setKit 2 6 "RE_NCO" "re_nco_soldier"

rem -----------------------------------------------------------------------------

gameLogic.setBeforeSpawnCamera 141/47/-198 -43/-8/0

if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix "sammatus"
else
texturemanager.customTextureSuffix "sammatus"
endIf
rem -----------------------------------------------------------------------------

GameLogic.MaximumLevelViewDistance 175

rem -----------------------------------------------------------------------------

gameLogic.setDefaultNumberOfTicketsEx 16 1 200
gameLogic.setDefaultNumberOfTicketsEx 16 2 200
gameLogic.setDefaultNumberOfTicketsEx 32 1 300
gameLogic.setDefaultNumberOfTicketsEx 32 2 300
gameLogic.setDefaultNumberOfTicketsEx 64 1 300
gameLogic.setDefaultNumberOfTicketsEx 64 2 350
gameLogic.setDefaultNumberOfTicketsEx 128 1 50
gameLogic.setDefaultNumberOfTicketsEx 128 2 50
gameLogic.setDefaultTimeToNextAIWave 8
gameLogic.setTicketLossAtEndPerMin 1000
gameLogic.setTicketLossPerMin 1 10
gameLogic.setTicketLossPerMin 2 10

rem -----------------------------------------------------------------------------

rem -----------------------------------------------------------------------------

renderer.globalStaticMeshLodDistanceScale 1
renderer.globalBundleMeshLodDistanceScale 1
renderer.globalSkinnedMeshLodDistanceScale 1


you will have trees.

Offline PoliorcetE

  • Jr. Member
  • **
  • Posts: 67
  • En lutte contre le crabe...
    • View Profile
Re: Sammatus 64p Coop 2.53
« Reply #7 on: 25-07-2018, 17:07:51 »
@Halifax
thx it's work now  :D
"S’il n’y avait pas la science, malheureux cloportes suintants d’ingratitude aveugle et d’ignorance crasse, s’il n’y avait pas la Science, combien d’entre nous pourraient profiter de leur cancer pendant plus de cinq ans ?" Pierre Desproges.