Spring:1944 dev and testing
Moderator: Moderators
This is going to be a problem in every game / mod that doesn't provide a pitch parameter to all mobile builders (iow, the vast majority). It's just the way that Spring now expects COBs to return this. Probably should default to a value of 0, instead of creating a stack error, but meh, that's what's going on.
- BlackLiger
- Posts: 1371
- Joined: 05 Oct 2004, 21:58
Which idiot did this?Argh wrote:This is going to be a problem in every game / mod that doesn't provide a pitch parameter to all mobile builders (iow, the vast majority). It's just the way that Spring now expects COBs to return this. Probably should default to a value of 0, instead of creating a stack error, but meh, that's what's going on.
I think that was KDR_11r... be nice, I think Peet requested it for Simbaes, and it's potentially useful. Just add another parameter to your mobile builder scripts, like so:
... that's all you need to do. You don't actually have to do anything with the parameter, just supply it. I agree with you, it shouldn't have been written this way (it'll probably break all of the OTA mods until their maintainers get un-lazy and learn how to use Scriptor for a second, omg), but that's what's going on. "Lucky" for me, I was the first game being tested heavily in SVN, so I saw this first. Should be easy enough to fix in Spring- just supply 0 if the parameter is undefined, so that the stacksize is correct, I would think...
Code: Select all
StartBuilding(heading,pitch)
Yeah, but it seems Nemo has done something with our infantry includes which means none of the infantry builders will recompile.
So we're screwed unless I figure out wth they won't compile.
I'm also pissed off with Spiked for not noticing this as he was doing SVN testing. Rargh.
So we're screwed unless I figure out wth they won't compile.
I'm also pissed off with Spiked for not noticing this as he was doing SVN testing. Rargh.

Last edited by FLOZi on 20 Dec 2007, 20:16, edited 1 time in total.
Anyway.
I'm calm.
yuritch (PRAISE BE UPON HIM, MORTALS) found the revision where nemo had replaced all the infantry includes with new ones which were 'not ready yet. don't recompile infantry scripts'. Why he didn't branch them I don't know. So, fixed.
Pain in the arse though. Especially as I'd just submitted to LordMatt

I'm calm.

yuritch (PRAISE BE UPON HIM, MORTALS) found the revision where nemo had replaced all the infantry includes with new ones which were 'not ready yet. don't recompile infantry scripts'. Why he didn't branch them I don't know. So, fixed.
Pain in the arse though. Especially as I'd just submitted to LordMatt


I did it, and I will not revert it, unless you want moar sync errors (it was accessing the stack vector outside it's bounds.)FLOZi wrote:Which idiot did this?Argh wrote:This is going to be a problem in every game / mod that doesn't provide a pitch parameter to all mobile builders (iow, the vast majority). It's just the way that Spring now expects COBs to return this. Probably should default to a value of 0, instead of creating a stack error, but meh, that's what's going on.
If it can be argued default arguments that are always set to 0 if not given is a feature of COB (is there a COB spec anywhere?..guess not), then feel free to modify it again. I just don't like Spring's default behaviour of just desyncing/crashing instead of giving a decent error message.
Actually it DID possibly cause desync/segfault. I FIXED IT.Argh wrote: It's not that it shouldn't be a problem, Peet. It's that it should default to a value of 0 for that parameter, instead of spewing errors to chat and infolog, and ultimately being a cause of desync, which is the big issue, 'specially for backwards compatibility / lazy modders Rolling Eyes
The checking code is still there, no one changed it.According to submarine the latest SVN no longer bitches about it anyway. Laughing Mad
http://spring.clan-sy.com/fisheye/brows ... /Units/COB
So I guess you fixed all scripts or submarine failed at testing

Ah. Well, I assumed that it was causing problems once it was expected by the patch accessing the variable's state, not that it was causing problems and we just hadn't seen it until you were investigating desync. Just my misunderstanding, frankly.Actually it DID possibly cause desync/segfault. I FIXED IT.
Aww Hell.This is going to be a problem in every game / mod that doesn't provide a pitch parameter to all mobile builders (iow, the vast majority). It's just the way that Spring now expects COBs to return this. Probably should default to a value of 0, instead of creating a stack error, but meh, that's what's going on.
You just gave me more stuff to do.
