need help with adding new propulsion component.
- Watermelon
- Code contributor
- Posts: 551
- Joined: 08 Oct 2006, 09:37
need help with adding new propulsion component.
I have changed the following files to add a 'new propulsion component' to the game:
propulsion.txt,propulsiontype.txt,bodypropulsionimd.txt,propulsionsound.txt in mp/stats/
research.txt,preresearch.txt,resultcomponent.txt in mp/stats/research/multiplayer/
names.txt in mp/messages/strings/
The source changes are finished too.(new 'type' for new propulsion,new 'script mask' for new propulsion etc etc)
I added a new entry in preresearch.txt to make sure the new propulsion item is 'pre-researched':
[my new prop name],R-Sys-Engineering01,1199
I am not sure what the 3rd value does,maybe Id or sumthing,I just added a random large number as the 3rd value,so it wont cause 'duplicated Id' problem.
The game loaded those datas successfully(no assert or abort or whatever),but the new propulsion just didnt show up in the design window for some reason.
Thanks.
propulsion.txt,propulsiontype.txt,bodypropulsionimd.txt,propulsionsound.txt in mp/stats/
research.txt,preresearch.txt,resultcomponent.txt in mp/stats/research/multiplayer/
names.txt in mp/messages/strings/
The source changes are finished too.(new 'type' for new propulsion,new 'script mask' for new propulsion etc etc)
I added a new entry in preresearch.txt to make sure the new propulsion item is 'pre-researched':
[my new prop name],R-Sys-Engineering01,1199
I am not sure what the 3rd value does,maybe Id or sumthing,I just added a random large number as the 3rd value,so it wont cause 'duplicated Id' problem.
The game loaded those datas successfully(no assert or abort or whatever),but the new propulsion just didnt show up in the design window for some reason.
Thanks.
tasks postponed until the trunk is relatively stable again.
- lav_coyote25
- Professional
- Posts: 3434
- Joined: 08 Aug 2006, 23:18
Re: need help with adding new propulsion component.
would reading the 1.12 (source - for the wdg original ) from the newst/pumpkin team help you? they added some new units ( cyborg and other units.) might be something in there that might help? :-\
"to prepare for disaster is to invite it, to not prepare for disaster is a fools choice" -me (kim-lav_coyote25-metcalfe) - it used to be attributed to unknown - but adding the last bit , it now makes sense.
- Watermelon
- Code contributor
- Posts: 551
- Joined: 08 Oct 2006, 09:37
Re: need help with adding new propulsion component.
thanks I'll look for the 1.12 source code.lav_coyote25 wrote: would reading the 1.12 (source - for the wdg original ) from the newst/pumpkin team help you? they added some new units ( cyborg and other units.) might be something in there that might help? :-\
tasks postponed until the trunk is relatively stable again.
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: need help with adding new propulsion component.
1.12 sourcecode...
- Attachments
-
- Version112_916_source.zip
- (529.69 KiB) Downloaded 345 times
- Watermelon
- Code contributor
- Posts: 551
- Joined: 08 Oct 2006, 09:37
Re: need help with adding new propulsion component.
Thanks.DevUrandom wrote: 1.12 sourcecode...
tasks postponed until the trunk is relatively stable again.
Re: need help with adding new propulsion component.
Maybe you have to use makeComponentAvailable() out of scripts (rules.slo for example) for it to show up.Watermelon wrote: The game loaded those datas successfully(no assert or abort or whatever),but the new propulsion just didnt show up in the design window for some reason.
Thanks.
First you add this line to rules.vlo:
Code: Select all
inScriptPropName PROPULSION "myNewPropulsion"
Then you add this to "initialisedEvent" event of rules.slo file:
Code: Select all
makeComponentAvailable(inScriptPropName, playerNumber);
Sign Up for Beta-Testing:
?topic=1617.0
?topic=1617.0
- Watermelon
- Code contributor
- Posts: 551
- Joined: 08 Oct 2006, 09:37
Re: need help with adding new propulsion component.
thx I'll try to mess with the .vlo files a bit.Troman wrote: Maybe you have to use makeComponentAvailable() out of scripts (rules.slo for example) for it to show up.
First you add this line to rules.vlo:
myNewPropulsion is the name of the propulsion as defined in txt files.Code: Select all
inScriptPropName PROPULSION "myNewPropulsion"
Then you add this to "initialisedEvent" event of rules.slo file:You'll need a loop to iterate through all players with playerNumber.Code: Select all
makeComponentAvailable(inScriptPropName, playerNumber);
tasks postponed until the trunk is relatively stable again.
- Watermelon
- Code contributor
- Posts: 551
- Joined: 08 Oct 2006, 09:37
Re: need help with adding new propulsion component.
In rules.vlo:
myNewTech RESEARCHSTAT "R-Vehicle-Prop-VTOLH"
In rules.slo
playnum = 0;
while (playnum < 8 )
{
completeResearch(myNewTech ,playnum);
then it gives me this assert/error message:
syntax error at line 64 'completeResearch(myNewTech ,playnum);' in rules.slo
token 288 text 'myNewTech'
I think the assert/error message means 'myNewTech' is not declared.I also tried using the 'PROPULSION' variable + makeComponentAvailable() you suggested,but it gave the same assert/error message.
myNewTech RESEARCHSTAT "R-Vehicle-Prop-VTOLH"
In rules.slo
playnum = 0;
while (playnum < 8 )
{
completeResearch(myNewTech ,playnum);
then it gives me this assert/error message:
syntax error at line 64 'completeResearch(myNewTech ,playnum);' in rules.slo
token 288 text 'myNewTech'
I think the assert/error message means 'myNewTech' is not declared.I also tried using the 'PROPULSION' variable + makeComponentAvailable() you suggested,but it gave the same assert/error message.
tasks postponed until the trunk is relatively stable again.
Re: need help with adding new propulsion component.
in rules.slo you have to add at the beginning of the file:
should work after that.
Same with PROPULSION variable, if you are going to use it instead.
Code: Select all
public RESEARCHSTAT myNewTech;
Same with PROPULSION variable, if you are going to use it instead.
Sign Up for Beta-Testing:
?topic=1617.0
?topic=1617.0
- Watermelon
- Code contributor
- Posts: 551
- Joined: 08 Oct 2006, 09:37
Re: need help with adding new propulsion component.
It works now with that line added,thanks.Troman wrote: in rules.slo you have to add at the beginning of the file:
should work after that.Code: Select all
public RESEARCHSTAT myNewTech;
Same with PROPULSION variable, if you are going to use it instead.
tasks postponed until the trunk is relatively stable again.
- Watermelon
- Code contributor
- Posts: 551
- Joined: 08 Oct 2006, 09:37
Re: need help with adding new propulsion component.
This is the propulsion I added,VTOLH or VTOL Helix
HC viper VOTLH:
[img width=300 height=225]http://img240.imageshack.us/img240/6633 ... 143sd2.jpg[/img]
http://img240.imageshack.us/img240/6633 ... 143sd2.jpg
Tri-lancer python VTOLH:
[img width=300 height=225]http://img220.imageshack.us/img220/1213 ... 153sw9.jpg[/img]
http://img220.imageshack.us/img220/1213 ... 153sw9.jpg
Tri-Bunkerbuster python VTOLH:
[img width=300 height=225]http://img220.imageshack.us/img220/8355 ... 160ih1.jpg[/img]
http://img220.imageshack.us/img220/8355 ... 160ih1.jpg
They look hilarious because they dont have a propulsion pie and I didnt rotate/invert the the turret like normal VTOL's,and they are too powerful(no need to rearm,flying,use the same weapons as ground units) and I am not sure if I should add such a feature to the game...
HC viper VOTLH:
[img width=300 height=225]http://img240.imageshack.us/img240/6633 ... 143sd2.jpg[/img]
http://img240.imageshack.us/img240/6633 ... 143sd2.jpg
Tri-lancer python VTOLH:
[img width=300 height=225]http://img220.imageshack.us/img220/1213 ... 153sw9.jpg[/img]
http://img220.imageshack.us/img220/1213 ... 153sw9.jpg
Tri-Bunkerbuster python VTOLH:
[img width=300 height=225]http://img220.imageshack.us/img220/8355 ... 160ih1.jpg[/img]
http://img220.imageshack.us/img220/8355 ... 160ih1.jpg
They look hilarious because they dont have a propulsion pie and I didnt rotate/invert the the turret like normal VTOL's,and they are too powerful(no need to rearm,flying,use the same weapons as ground units) and I am not sure if I should add such a feature to the game...
tasks postponed until the trunk is relatively stable again.
Re: need help with adding new propulsion component.
"Invisible units" special ability comes to my mind ;D
Sign Up for Beta-Testing:
?topic=1617.0
?topic=1617.0
- Watermelon
- Code contributor
- Posts: 551
- Joined: 08 Oct 2006, 09:37
Re: need help with adding new propulsion component.
hehe I think I saw a file called specialability.txt,but there were 3 lines in that file,the special ability is not finished too methinks.Troman wrote: "Invisible units" special ability comes to my mind ;D
tasks postponed until the trunk is relatively stable again.
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: need help with adding new propulsion component.
As I said earlier: I wouldn't add 3 turrets to any propulsion, whether it is ground or air... Simply too powerful and doesn't look that bright.
What came to my mind when I saw this: Maybe the front turret should be limited to "light" weapons, as chaingun, flamer or similar, to assist with balancing and stop it from looking a bit dumb...
On VTOLs with multiple turrets I wont generally say no, but the costs should be enormous... And with that I guess in the end they wouldn't be used that often by the player...
What came to my mind when I saw this: Maybe the front turret should be limited to "light" weapons, as chaingun, flamer or similar, to assist with balancing and stop it from looking a bit dumb...
On VTOLs with multiple turrets I wont generally say no, but the costs should be enormous... And with that I guess in the end they wouldn't be used that often by the player...
-
- Regular
- Posts: 611
- Joined: 10 Nov 2006, 16:54
Re: need help with adding new propulsion component.
The HC viper VTOLH, AKA the "floating turret". Reminds me of something out of a Stephen King story ;p.
Dev, was your suggestion about a light turret intended for all of his "multiple turret" designs, or just the ones from this thread?
Because for VTOL designs, I don't think a flamer would be a good idea (a flamethrower attached to a flying vechicle?)
In the case of VTOL's, I'd more assume that, perhaps, on a heavier chassie version, you could have a combination of 1 vtol "weapon" (turret, lancer, etc.) and 1 Bomb-bay (from the discussion in the multiple turret thread, it sounded like a mount point for vtol bomb bays is already present)
Dev, was your suggestion about a light turret intended for all of his "multiple turret" designs, or just the ones from this thread?
Because for VTOL designs, I don't think a flamer would be a good idea (a flamethrower attached to a flying vechicle?)
In the case of VTOL's, I'd more assume that, perhaps, on a heavier chassie version, you could have a combination of 1 vtol "weapon" (turret, lancer, etc.) and 1 Bomb-bay (from the discussion in the multiple turret thread, it sounded like a mount point for vtol bomb bays is already present)