WZ don't use my unit
WZ don't use my unit
Ok,
In wait for understand how to make a mod file used, i changed directly the files of the game (no worrie : I use an unpacked file for that and always have the original warzone.wz renamed - in *.wz2).
The game not crash, but not use the unit. In fact, he don't even see the research.
The modificiation is the add of two bunkers : One with the Medium Cannon, the other with the Heavy Cannon (we can put a 375mm cannon on top of a wall or even on a tank, but not in a freackin' bunker ? That's weird !).
Added lines (at the end of the files) :
/stats/structurefunctions.txt
/* Ajouts Vampiloup */
Pillbox-medium-cannon,Basic Wall Function,86
Pillbox-heavy-cannon,Basic Wall Function,87
/stats/structures.txt
/* Ajouts Vampiloup */
Pillbox-medium-cannon,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,500,10,125,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,Blcanpil.pie,0,1,1
Pillbox-heavy-cannon,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,500,10,125,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,Blcanpil.pie,0,1,1
/stats/structureweapons.txt
/* Ajouts Vampiloup */
Pillbox-medium-cannon,Cannon2A-TMk1,147
Pillbox-heavy-cannon,Cannon375mmMk1,148
/stats/research/multiplayer/prresearch.txt
/* Ajouts Vampiloup */
R-Defense-Pillbox-medium-cannon,R-Wpn-Cannon2Mk1,1000
R-Defense-Pillbox-medium-cannon,R-Defense-Pillbox04,1000
R-Defense-Pillbox-heavy-cannon,R-Wpn-Cannon3Mk1,1001
R-Defense-Pillbox-heavy-cannon,R-Defense-Pillbox-medium-cannon,1001
/stats/research/multiplayer/research.txt
/* Ajouts Vampiloup */
R-Defense-Pillbox-medium-cannon,Level One,0,0,IMAGE_RES_DEFENCE,0,0,RES_PB_MC,Pillbox-medium-cannon,0,0,1600,0,2,0,0,0,1,0,0
R-Defense-Pillbox-heavy-cannon,Level One,0,0,IMAGE_RES_DEFENCE,0,0,RES_PB_HC,Pillbox-heavy-cannon,0,0,1700,0,2,0,0,0,1,0,0
tried with RES_PB_LC, too.
/stats/research/multiplayer/resultstructure.txt
/* Ajouts Vampiloup */
R-Defense-Pillbox-medium-cannon,Pillbox-medium-cannon,0,299
R-Defense-Pillbox-heavy-cannon,Pillbox-heavy-cannon,0,300
As i say, no crash, no error message : The game just don't use them. I suppose it's an ID problem.
A hint, someone ?
In wait for understand how to make a mod file used, i changed directly the files of the game (no worrie : I use an unpacked file for that and always have the original warzone.wz renamed - in *.wz2).
The game not crash, but not use the unit. In fact, he don't even see the research.
The modificiation is the add of two bunkers : One with the Medium Cannon, the other with the Heavy Cannon (we can put a 375mm cannon on top of a wall or even on a tank, but not in a freackin' bunker ? That's weird !).
Added lines (at the end of the files) :
/stats/structurefunctions.txt
/* Ajouts Vampiloup */
Pillbox-medium-cannon,Basic Wall Function,86
Pillbox-heavy-cannon,Basic Wall Function,87
/stats/structures.txt
/* Ajouts Vampiloup */
Pillbox-medium-cannon,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,500,10,125,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,Blcanpil.pie,0,1,1
Pillbox-heavy-cannon,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,500,10,125,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,Blcanpil.pie,0,1,1
/stats/structureweapons.txt
/* Ajouts Vampiloup */
Pillbox-medium-cannon,Cannon2A-TMk1,147
Pillbox-heavy-cannon,Cannon375mmMk1,148
/stats/research/multiplayer/prresearch.txt
/* Ajouts Vampiloup */
R-Defense-Pillbox-medium-cannon,R-Wpn-Cannon2Mk1,1000
R-Defense-Pillbox-medium-cannon,R-Defense-Pillbox04,1000
R-Defense-Pillbox-heavy-cannon,R-Wpn-Cannon3Mk1,1001
R-Defense-Pillbox-heavy-cannon,R-Defense-Pillbox-medium-cannon,1001
/stats/research/multiplayer/research.txt
/* Ajouts Vampiloup */
R-Defense-Pillbox-medium-cannon,Level One,0,0,IMAGE_RES_DEFENCE,0,0,RES_PB_MC,Pillbox-medium-cannon,0,0,1600,0,2,0,0,0,1,0,0
R-Defense-Pillbox-heavy-cannon,Level One,0,0,IMAGE_RES_DEFENCE,0,0,RES_PB_HC,Pillbox-heavy-cannon,0,0,1700,0,2,0,0,0,1,0,0
tried with RES_PB_LC, too.
/stats/research/multiplayer/resultstructure.txt
/* Ajouts Vampiloup */
R-Defense-Pillbox-medium-cannon,Pillbox-medium-cannon,0,299
R-Defense-Pillbox-heavy-cannon,Pillbox-heavy-cannon,0,300
As i say, no crash, no error message : The game just don't use them. I suppose it's an ID problem.
A hint, someone ?
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: WZ don't use my unit
Did you add it to the files in mp.wz or in warzone.wz?
Because the multiplayer-mode-files in mp.wz override the singleplayer-mode-files in warzone.wz.
Because the multiplayer-mode-files in mp.wz override the singleplayer-mode-files in warzone.wz.
Re: WZ don't use my unit
Wait a second !
I need to put my mod (or changes) in
/.local/share/warzone2100/ (/mods/global/)
or in
/.warzone2100/ (/mods/global/)
?
I need to put my mod (or changes) in
/.local/share/warzone2100/ (/mods/global/)
or in
/.warzone2100/ (/mods/global/)
?
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: WZ don't use my unit
There is not difference between those 2.
When Warzone searches for a file it will 1st look into ~/.warzone2100 and afterwards in several other locations, .eg the prefix where the exe is installed into: ~/.local/share/warzone2100.
So you can simply put your custom, usermade changes into .warzone2100, while you are not privileged to touch the Warzone installation in /opt or /usr.
Same applies for Windows of course. Warzone 1st searches in Documents and Settings\USER\My Documents\Warzone 2100 and afterwards in the folder it is installed to.
When Warzone searches for a file it will 1st look into ~/.warzone2100 and afterwards in several other locations, .eg the prefix where the exe is installed into: ~/.local/share/warzone2100.
So you can simply put your custom, usermade changes into .warzone2100, while you are not privileged to touch the Warzone installation in /opt or /usr.
Same applies for Windows of course. Warzone 1st searches in Documents and Settings\USER\My Documents\Warzone 2100 and afterwards in the folder it is installed to.
Re: WZ don't use my unit
Ok. With the mod placed at the good place ::) we have something.
but the error message is strange :
error: loadStructureStats: should have a sensor attached to Sys-SensoTower0 1!
error: Assert in Warzone: structure.c:968 : loadStructureStats (psStructure ->pSensor != NULL)
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
But the sensotower01 HAVE an attached sensor :
Sys-SensoTower01,DEFENSE,Level All,MEDIUM,0,1,1,Concrete,300,3,10,300,0,60,10,150,255,0,ZNULLECM,SensorTower1Mk1,0,BLGUARDM.PIE,0,0,0
I see if i don't have forgot something somewhere, but i'm sure i have not changed the standard lines, only add some at the end for the two new bunkers.
but the error message is strange :
error: loadStructureStats: should have a sensor attached to Sys-SensoTower0 1!
error: Assert in Warzone: structure.c:968 : loadStructureStats (psStructure ->pSensor != NULL)
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
But the sensotower01 HAVE an attached sensor :
Sys-SensoTower01,DEFENSE,Level All,MEDIUM,0,1,1,Concrete,300,3,10,300,0,60,10,150,255,0,ZNULLECM,SensorTower1Mk1,0,BLGUARDM.PIE,0,0,0
I see if i don't have forgot something somewhere, but i'm sure i have not changed the standard lines, only add some at the end for the two new bunkers.
Re: WZ don't use my unit
Don't laugh : The game need to have the "sensor.txt" also in the mod folder, even if i have changed nothing in ???
And know, he don't find the "ressources" for the first added bunker. AARGGHH !
And know, he don't find the "ressources" for the first added bunker. AARGGHH !
Re: WZ don't use my unit
You have to give in-game names to your new structures, they are defined in messages\strings\names.txt.D.Durand wrote: And know, he don't find the "ressources" for the first added bunker. AARGGHH !
Sign Up for Beta-Testing:
?topic=1617.0
?topic=1617.0
Re: WZ don't use my unit
Yes, thank. Found that. But now he want, Tadaaaa : Unable to find string resource for RocketSuper
What the hell can be a RocketSuper ?! There is not a suche thing in all the game (this name is not found is all the files of the game !).
EDIT : Resolved by put the entire stats and strings folders inot the mod. What a shame.
What the hell can be a RocketSuper ?! There is not a suche thing in all the game (this name is not found is all the files of the game !).
EDIT : Resolved by put the entire stats and strings folders inot the mod. What a shame.
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: WZ don't use my unit
Greping for RocketSuper gave me this:
Are you sure you modified the mp files and not the singleplayer files?./data/mp/messages/strings/names.txt:RocketSuper "*Rocket Bastion Weapon*"
./data/mp/stats/weaponsounds.txt:RocketSuper,rocket.ogg,LrgExpl.ogg,286
./data/mp/stats/structureweapons.txt:X-Super-Rocket,RocketSuper,161
./data/mp/stats/weapons.txt:RocketSuper,Level All,1200,1250,150000,1,10,5,GNWPFRKT.PIE,TRWPFRKT.PIE,FXMRocAt.PIE,FXMflare.PIE,FXGRDexl.PIE,FXGRDexl.PIE,FXSSplsh.PIE,0,512,2048,70,80,5,2,2,150,400,0,0,0,0,0,0,0,10,1200,20,YES,KINETIC,ROCKET,DIRECT,ANTI TANK,180,20,-60,YES,NO,0,128,YES,100,100,0,0
Re: WZ don't use my unit
Wait... You mean i need to use the mp.wz ?
...
I want to die.
---
Ok. Used MP files.
But he continue to say to me
error: Unable to find string resource for
/* Ajouts Vampiloup */
Pillbox-medium-cannon
even if in the names.txt i have
/* Ajouts Vampiloup */
Pillbox-medium-cannon "Bunker Canon 75mm"
R-Defense-Pillbox-medium-cannon "Bunker Canon 75mm"
Pillbox-heavy-cannon "Bunker Canon 105mm"
R-Defense-Pillbox-heavy-cannon "Bunker Canon 105mm"
---
Ok, seem the research name is too long (grr). But now i have :
error:Â Â Â STRRES file parse error:
syntax error at line 2437
Text: '*'
Mmh... yes. Line 2437... of what file ? Grr !
---
Ok.
First one first : Stats files don't seem to like commentaries.
Deleted commentaries.
Changed names of my objects for have a lenght less than 20 character.
Now, the Medium cannon bunker don't seem to make cry WZ.
But the Heavy one do ! DO ! They are the same, in Anubis name !
Look at what he say to me, the ugly thing :
error:Â Â Â Unable to find stats for structure Pill-hv-can
And in the vampiloup.wz/stats/structures.txt file, what do you think we find at the last line ?
Pill-hv-can,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,500,10,125,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,Blcanpil.pie,0,1,1
Edit : Added the two in structurefunctions.txt, but that change nothing.
:'(
---
Funny. If in structures.txt i change the place of Pill-md-can and Pill-hv-can, it's "md" he can't find, now...
OH MY !Â
If i put the two BEFORE X-Super (the fortress, i imagine), the error message is that :
error:Â Â Â Unable to find stats for structure X-Super-Rocket
He refuse to find the LAST of the file.
The file has 152 lines.
...
I want to die.
---
Ok. Used MP files.
But he continue to say to me
error: Unable to find string resource for
/* Ajouts Vampiloup */
Pillbox-medium-cannon
even if in the names.txt i have
/* Ajouts Vampiloup */
Pillbox-medium-cannon "Bunker Canon 75mm"
R-Defense-Pillbox-medium-cannon "Bunker Canon 75mm"
Pillbox-heavy-cannon "Bunker Canon 105mm"
R-Defense-Pillbox-heavy-cannon "Bunker Canon 105mm"
---
Ok, seem the research name is too long (grr). But now i have :
error:Â Â Â STRRES file parse error:
syntax error at line 2437
Text: '*'
Mmh... yes. Line 2437... of what file ? Grr !
---
Ok.
First one first : Stats files don't seem to like commentaries.
Deleted commentaries.
Changed names of my objects for have a lenght less than 20 character.
Now, the Medium cannon bunker don't seem to make cry WZ.
But the Heavy one do ! DO ! They are the same, in Anubis name !
Look at what he say to me, the ugly thing :
error:Â Â Â Unable to find stats for structure Pill-hv-can
And in the vampiloup.wz/stats/structures.txt file, what do you think we find at the last line ?
Pill-hv-can,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,500,10,125,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,Blcanpil.pie,0,1,1
Edit : Added the two in structurefunctions.txt, but that change nothing.
:'(
---
Funny. If in structures.txt i change the place of Pill-md-can and Pill-hv-can, it's "md" he can't find, now...
OH MY !Â
If i put the two BEFORE X-Super (the fortress, i imagine), the error message is that :
error:Â Â Â Unable to find stats for structure X-Super-Rocket
He refuse to find the LAST of the file.
The file has 152 lines.
Last edited by DevUrandom on 22 Jan 2007, 13:49, edited 1 time in total.
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: WZ don't use my unit
Did you try to make the file and in a newline?
Means: An empty line at the end.
Means: An empty line at the end.
Re: WZ don't use my unit
Just picked the original file and put my lines at the end.
If i put one empty line at the end, i have that :
error:Â Â Â Unable to find stats for structure
And if i put two or more empty lines, i have that :
error:Â Â Â Unable to find string resource for
---
Strangely enough, if i put the two same line at the end, as this :
X-Super-Rocket,DOOR,Level All,HARD,0,2,2,Concrete,1600,1,15,1200,10,1250,10,100,255,1,ZNULLECM,DefaultSensor1Mk1,1,STWPFCAN.PIE,0,0,1
Pill-md-can,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,500,10,125,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,Blcanpil.pie,0,1,1
Pill-hv-can,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,500,10,125,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,Blcanpil.pie,0,1,1
Pill-hv-can,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,500,10,125,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,Blcanpil.pie,0,1,1
The message error say also :
error: Unable to find stats for structure
But at the last line, i put just the structure name, as that :
X-Super-Rocket,DOOR,Level All,HARD,0,2,2,Concrete,1600,1,15,1200,10,1250,10,100,255,1,ZNULLECM,DefaultSensor1Mk1,1,STWPFCAN.PIE,0,0,1
Pill-md-can,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,500,10,125,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,Blcanpil.pie,0,1,1
Pill-hv-can
I have the same
error: Unable to find stats for structure Pill-hv-can
with or without the stats, as if the game, for the last line, stop to read after the last name but BEFORE the stats.
---
Surprisingly, if i delete the last empty line in the three structure stats of the mod (structurefunctions, structures, structureweapons), i don't have theses error message anymore, but this one :
error:Â Â Â Unable to find viewdata for message RES_PB_MC
That's a problem with the research messages of the medium bunker. I go for it.
---
FOUND ! ;D
The LC was in the resmessage1
Now, eh say that :
error:Â Â Â Unable to find Research R-Def-Pill-hv-can
Nooooooooo !
---
Added an empty line at the end of the file.
New error message :
error:Â Â Â Cannot find the structure Stat for Research Bunker Canon 105mm
wu ?
---
In Anubis name : That's WORK !
Just added - again - an empty line at the end of the Structures.txt
I have my bunkers. At least (and they pack a lot).
If i put one empty line at the end, i have that :
error:Â Â Â Unable to find stats for structure
And if i put two or more empty lines, i have that :
error:Â Â Â Unable to find string resource for
---
Strangely enough, if i put the two same line at the end, as this :
X-Super-Rocket,DOOR,Level All,HARD,0,2,2,Concrete,1600,1,15,1200,10,1250,10,100,255,1,ZNULLECM,DefaultSensor1Mk1,1,STWPFCAN.PIE,0,0,1
Pill-md-can,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,500,10,125,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,Blcanpil.pie,0,1,1
Pill-hv-can,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,500,10,125,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,Blcanpil.pie,0,1,1
Pill-hv-can,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,500,10,125,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,Blcanpil.pie,0,1,1
The message error say also :
error: Unable to find stats for structure
But at the last line, i put just the structure name, as that :
X-Super-Rocket,DOOR,Level All,HARD,0,2,2,Concrete,1600,1,15,1200,10,1250,10,100,255,1,ZNULLECM,DefaultSensor1Mk1,1,STWPFCAN.PIE,0,0,1
Pill-md-can,DEFENSE,Level All,BUNKER,0,1,1,Concrete,400,1,20,500,10,125,10,150,255,1,ZNULLECM,DefaultSensor1Mk1,1,Blcanpil.pie,0,1,1
Pill-hv-can
I have the same
error: Unable to find stats for structure Pill-hv-can
with or without the stats, as if the game, for the last line, stop to read after the last name but BEFORE the stats.
---
Surprisingly, if i delete the last empty line in the three structure stats of the mod (structurefunctions, structures, structureweapons), i don't have theses error message anymore, but this one :
error:Â Â Â Unable to find viewdata for message RES_PB_MC
That's a problem with the research messages of the medium bunker. I go for it.
---
FOUND ! ;D
The LC was in the resmessage1
Now, eh say that :
error:Â Â Â Unable to find Research R-Def-Pill-hv-can
Nooooooooo !
---
Added an empty line at the end of the file.
New error message :
error:Â Â Â Cannot find the structure Stat for Research Bunker Canon 105mm
wu ?
---
In Anubis name : That's WORK !
Just added - again - an empty line at the end of the Structures.txt
I have my bunkers. At least (and they pack a lot).
Last edited by DevUrandom on 22 Jan 2007, 13:47, edited 1 time in total.
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: WZ don't use my unit
There is also an EDIT function...
Re: WZ don't use my unit
Sorry. Don't think at that :-[
Damn, the Heavy Cannon Bunker research is not possible. No crash, no error message. Only, the HCB is not shown is the research panel, even if the prequisite are known... I understand nothing, there.
Damn, the Heavy Cannon Bunker research is not possible. No crash, no error message. Only, the HCB is not shown is the research panel, even if the prequisite are known... I understand nothing, there.