Hello,
using the Stats Editor I did crate some new Hardpoints and emplacements that did work fine.
Proceeding the same way, I wanted to create new kind of BUNKERS, that did not work.
(copying the orginal bunkers and modify them)
Do I have to modify special additional files for BUNKERS?
Same problem occured when I did modify an copied Research Facility, even if I tured it into a WALL OR DOOR?
Which files will I have to modify to fix this maually?
Does anyone know help?
Have a nice day,
R.E.Z.
[Solved] Problem with BUNKERS using Stats Editor
-
REZ
- Trained

- Posts: 93
- Joined: 16 Dec 2009, 11:49
- Location: Pattensen, Germany
[Solved] Problem with BUNKERS using Stats Editor
Last edited by REZ on 09 Sep 2013, 23:55, edited 1 time in total.
-
Per
- Warzone 2100 Team Member

- Posts: 3780
- Joined: 03 Aug 2006, 19:39
Re: Problem with BUNKERS using Stats Editor
I've modified bunkers before with success. If you have problems, post your files here.
-
crab_
- Trained

- Posts: 349
- Joined: 29 Jul 2013, 18:09
Re: Problem with BUNKERS using Stats Editor
Bunkers should work same way as hardpoints and towers.
Note: Machinegun bunker have special invisible weapon.
Can you say, what exactly does not work? game not start or you just cannot see new bunkers in build menu?
Attach your files.
As for Research Facility, You have to attach special "research function" to your research facility.
Each new structure also should be added to results list of some research.
In warzone you can use cheat code "give all" to see all structures in build menu.
Note: Machinegun bunker have special invisible weapon.
Can you say, what exactly does not work? game not start or you just cannot see new bunkers in build menu?
Attach your files.
As for Research Facility, You have to attach special "research function" to your research facility.
Each new structure also should be added to results list of some research.
In warzone you can use cheat code "give all" to see all structures in build menu.
Warzone2100 Guide - http://betaguide.wz2100.net/
-
REZ
- Trained

- Posts: 93
- Joined: 16 Dec 2009, 11:49
- Location: Pattensen, Germany
Re: Problem with BUNKERS using Stats Editor
Hello,
@ Per
@ crab_
thank You

Okay, here is what I did using the stats editor:
I did copy the Machinegun Bunker (PillBox1). So I got a new BUNKER and named it X1 Bunker. Its code is PillBox1_copy1.
Afterwards I did create a Reserch for this: copy of the Machinegun Bunker (R-Defense-Pillbox01) and name it X1 Bunker (PillBox1_copy1).
Finally I made the following settings:
prresearch.txt
researchstruct.txt
resultstructure.txt
When I do run the test07-MOD, I got a crash and the following log-file (my name is erased):
Perhaps someone might have an idea for me? Or a hint?
Have a nice week.
C.U. R.E.Z.
@ Per
@ crab_
thank You
Okay, here is what I did using the stats editor:
I did copy the Machinegun Bunker (PillBox1). So I got a new BUNKER and named it X1 Bunker. Its code is PillBox1_copy1.
Afterwards I did create a Reserch for this: copy of the Machinegun Bunker (R-Defense-Pillbox01) and name it X1 Bunker (PillBox1_copy1).
Finally I made the following settings:
prresearch.txt
Code: Select all
R-Defense-Pillbox01_copy1,R-Sys-Engineering01,810Code: Select all
R-Defense-Pillbox01_copy1,A0CommandCentre,0Code: Select all
R-Defense-Pillbox01_copy1,PillBox1_copy1,0,810Code: Select all
--- Starting log [C:\Dokumente und Einstellungen\...\Eigene Dateien\Warzone 2100 3.1\logs\WZlog-0901_201029.txt]---
info |08:10:29: [realmain:1133] Using C:\Dokumente und Einstellungen\...\Eigene Dateien\Warzone 2100 3.1\logs\WZlog-0901_201029.txt debug file
info |08:10:29: [realmain:1235] mod_mp (test07.wz) is enabled
info |08:10:33: [loadMapPreview:456] Loading map preview: "Sk-Rush" builtin t2
last message repeated 2 times
info |08:10:44: [checkStructureStats:7362] Invalid function for structure PillBox1_copy1
info |08:10:44: [checkStructureStats:7362] Assert in Warzone: structure.cpp:7362 (asStructureStats[structInc].asFuncList[inc] != NULL), last script event: 'N/A'
fatal |08:10:44: [startGameLoop:784] Invalid Structure Stats
fatal |08:10:50: [startGameLoop:785] Shutting down after failure
Have a nice week.
C.U. R.E.Z.
You do not have the required permissions to view the files attached to this post.
-
crab_
- Trained

- Posts: 349
- Joined: 29 Jul 2013, 18:09
Re: Problem with BUNKERS using Stats Editor
@REZ in your log i i see "Invalid function for structure PillBox1_copy1"
You copied bunker with non-zero "functions count" field. See header of structures.txt
Structure key,Type,Unused,Strength,Unused,Base Width,Base Breadth,Unused,Build points,Height,Armour,Body points,Unused,Build power,Unused,Resistance,Unused,Unused,ECM key,Sensor key,Weapon Slots,Structure model,Base model,Functions,Weapons
I think stat editor do not copy functions of structures.
I think game tried to load function for your "PillBox1_copy1" but unsuccessfull because there is no function in 'structurefunctions.txt'
I've modified line in sctuctures.txt and now it works.
You copied bunker with non-zero "functions count" field. See header of structures.txt
Structure key,Type,Unused,Strength,Unused,Base Width,Base Breadth,Unused,Build points,Height,Armour,Body points,Unused,Build power,Unused,Resistance,Unused,Unused,ECM key,Sensor key,Weapon Slots,Structure model,Base model,Functions,Weapons
I think stat editor do not copy functions of structures.
I think game tried to load function for your "PillBox1_copy1" but unsuccessfull because there is no function in 'structurefunctions.txt'
I've modified line in sctuctures.txt and now it works.
Code: Select all
PillBox1_copy1,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,700,10,100,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,blpilbox.pie,0,0,1Warzone2100 Guide - http://betaguide.wz2100.net/
-
REZ
- Trained

- Posts: 93
- Joined: 16 Dec 2009, 11:49
- Location: Pattensen, Germany
Re: Problem with BUNKERS using Stats Editor
Hello,
@ crab_ cool thank You.
Now it works.
For the case it might help someone else, I upload the complete test07 MOD with a new BUNKER X1.
Have a nice week,
Thank You,
R.E.Z.

@ crab_ cool thank You.
Now it works.
For the case it might help someone else, I upload the complete test07 MOD with a new BUNKER X1.
Have a nice week,
Thank You,
R.E.Z.
You do not have the required permissions to view the files attached to this post.