understanding the command turret updates

Discuss the future of Warzone 2100 with us.
winsrp
Trained
Trained
Posts: 417
Joined: 14 May 2008, 17:00

understanding the command turret updates

Post by winsrp »

So I noticed that nothing changed when I researched the new turret model. I also changed some other parameters, like vision range for the turrets II, III and IV, and they are not used at all... useless upgrades.

So I tried to change them, and added a couple more lines to the brain.txt files and re-arranged them in a way that i though that would make the new turrets available, but didn't work.

A thing I noticed is that even when I changed the name of the "Command Turret" to "Command Turret I" on the names.txt, the name on the research list in game, didn't change at all, so I'm guessing this guy its hardcoded somewhere to be made useless.

I also tried to make the Turret II, III, IV, instead of new turrets, upgrades to the current Command turret but the game keeps closing upon trying to start a game with no error.

So I even tried to make some put some crazy range upgrade, that I now its not going to work, but here is the test, error log comes empty, can someone help?
You do not have the required permissions to view the files attached to this post.
winsrp
Trained
Trained
Posts: 417
Joined: 14 May 2008, 17:00

Re: understanding the command turret updates

Post by winsrp »

by the way... the file above contains the fix for the cb tower not positioned correctly on the research tree.. same for vtol strike, and vtol cb towers...

By the way.... how come we cannot update the visibility range on weapons with an upgrade?
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: understanding the command turret updates

Post by Zarel »

winsrp wrote:So I noticed that nothing changed when I researched the new turret model. I also changed some other parameters, like vision range for the turrets II, III and IV, and they are not used at all... useless upgrades.
There's no such thing as turret vision range, except for sensor turrets. Commanders aren't sensors.
winsrp wrote:So I tried to change them, and added a couple more lines to the brain.txt files and re-arranged them in a way that i though that would make the new turrets available, but didn't work.
What do you mean?
winsrp wrote:A thing I noticed is that even when I changed the name of the "Command Turret" to "Command Turret I" on the names.txt, the name on the research list in game, didn't change at all, so I'm guessing this guy its hardcoded somewhere to be made useless.
They're not hardcoded. You changed the wrong "Command Turret". You probably changed CommandTurret1 (command turret turret) instead of R-Comp-CommandTurret01 (command turret research topic).
winsrp wrote:I also tried to make the Turret II, III, IV, instead of new turrets, upgrades to the current Command turret but the game keeps closing upon trying to start a game with no error.
It's impossible to make command turrets upgrades of each other... That's why we do no such thing.
winsrp wrote:So I even tried to make some put some crazy range upgrade, that I now its not going to work, but here is the test, error log comes empty, can someone help?
What do you want me to do?
winsrp wrote:rebalance.wz
I already have a mod named rebalance (see guide.wz2100.net/rebalance). Please rename your mod to something like winsrp-balance.
winsrp wrote:By the way.... how come we cannot update the visibility range on weapons with an upgrade?
...because weapons don't have internal sensors?

Weapons use the internal sensor of whatever they're mounted on. I believe DefaultSensor1Mk1 or something (range 8 builtin) is hardcoded for tanks. Most structures use that sensor, except towers (range 12 builtin), fortresses (range 14 builtin), and Nexus structures (range 16 builtin). Commanders give a hardcoded +50% bonus to vision range (so the equivalent of range 12 builtin).
winsrp
Trained
Trained
Posts: 417
Joined: 14 May 2008, 17:00

Re: understanding the command turret updates

Post by winsrp »

ok, I got clear now the sensor view range problem that units have, and why it cannot be modified, but, would you be so kind to explain me how does the commander upgrades works??? O_o

What I see is that, when I research command turret 2, this should replace the old command turret 1, but this does not seems to be the case, the name of the components is always the same even there are quite some names for this on the names.txt, but there is only 1 entry on the brain.txt file, and also the research topics all point to the same component???

Wouldn't there be 4 entries on the brain.txt file, and each research topic point a different result component?

regards and thanks for your time.

-Wins
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: understanding the command turret updates

Post by Zarel »

winsrp wrote:ok, I got clear now the sensor view range problem that units have, and why it cannot be modified, but, would you be so kind to explain me how does the commander upgrades works??? O_o

What I see is that, when I research command turret 2, this should replace the old command turret 1, but this does not seems to be the case, the name of the components is always the same even there are quite some names for this on the names.txt, but there is only 1 entry on the brain.txt file, and also the research topics all point to the same component???

Wouldn't there be 4 entries on the brain.txt file, and each research topic point a different result component?
They're different entries in weapons.txt

They replace the old command turret in the design screen, but current command turrets don't get auto updated.
winsrp
Trained
Trained
Posts: 417
Joined: 14 May 2008, 17:00

Re: understanding the command turret updates

Post by winsrp »

I have made a simple modification to the weapons.txt, and increased their like of fire for each turret, but 5*128 from each other, and then when I reached that upgrade, I made a new model and produced a new vehicle, but they always have the same fire range... so to me, there is something wrong with them. 20x helps a lot doing this test.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: understanding the command turret updates

Post by Zarel »

winsrp wrote:I have made a simple modification to the weapons.txt, and increased their like of fire for each turret, but 5*128 from each other, and then when I reached that upgrade, I made a new model and produced a new vehicle, but they always have the same fire range... so to me, there is something wrong with them. 20x helps a lot doing this test.
...? Was there a question? What did you do?
winsrp
Trained
Trained
Posts: 417
Joined: 14 May 2008, 17:00

Re: understanding the command turret updates

Post by winsrp »

Context: I have checked the command turrets and they do not replace themselves, when you finish the command turret 2 research it does not becomes available in the design screen (actually the command turret 1 never gets replaced at all)

Question: Could you please check if you will have the same case of the command turret not changing on the design screen?

Thanks.