• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Beta CTDs need squashing!

Well, I can't get the thing to crash now. Gee. <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

Feels good to have this bug squashed.

Hook
 
<!--quoteo(post=171086:date=Nov 12 2006, 12:09 PM:name=IncredibleHat)--><div class='quotetop'>QUOTE(IncredibleHat @ Nov 12 2006, 12:09 PM) [snapback]171086[/snapback]</div><div class='quotemain'><!--quotec-->
...It's a DOOZIE!!!... a whole wopping ONE LINE OF CODE needs to be changed. ...<!--QuoteEnd--></div><!--QuoteEEnd-->

Which line is it?
 
<!--quoteo(post=171086:date=Nov 12 2006, 09:09 AM:name=IncredibleHat)--><div class='quotetop'>QUOTE(IncredibleHat @ Nov 12 2006, 09:09 AM) [snapback]171086[/snapback]</div><div class='quotemain'><!--quotec-->
<!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo-->STOP THE PRESSES!!!<!--sizec--></span><!--/sizec-->

<!--sizeo:5--><span style="font-size:18pt;line-height:100%"><!--/sizeo-->WE HAVE A FIX!!!<!--sizec--></span><!--/sizec-->

Hook and I just discovered the vile evil at the root of this problem! It's a DOOZIE!!!... a whole wopping ONE LINE OF CODE needs to be changed. We are doing final trials and tests to see if it fixed it. Stay tuned!
<!--QuoteEnd--></div><!--QuoteEEnd-->


HIP HIP, HOORRAAY! HIP HIP, HOORRAAY! HIP HIP, HOORRAAY! <img src="style_emoticons/<#EMO_DIR#>/wavarr.gif" style="vertical-align:middle" emoid=":warr" border="0" alt="wavarr.gif" /> <img src="style_emoticons/<#EMO_DIR#>/wavarr.gif" style="vertical-align:middle" emoid=":warr" border="0" alt="wavarr.gif" /> <img src="style_emoticons/<#EMO_DIR#>/wavarr.gif" style="vertical-align:middle" emoid=":warr" border="0" alt="wavarr.gif" />

let's go wipe it under akella's noses. <img src="style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" />
 
Holy hell!!! Whats the fix, whats the fix!?

**grins stupidly and drools a bit**

Cap'n Drow
 
HOORAY!!!! Great job guys! <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
 
It's like Christmas before the date <img src="style_emoticons/<#EMO_DIR#>/william.gif" style="vertical-align:middle" emoid=":will" border="0" alt="william.gif" />
 
three rounds on me! <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" /> <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" /> <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Well... not to spoil SOMEONE's fun, but it wasn't a bug caused by akella... Hook & I think it was an honest mistake, an oversight, by the modder... we all do things like that <img src="style_emoticons/<#EMO_DIR#>/whistling.gif" style="vertical-align:middle" emoid=":wp" border="0" alt="whistling.gif" />

I'm just glad its fixed. You all will be able to get the fix in pieters next posting (either as an update to test out, or as build 13 final, depends on him).
 
oh well, i already had those CTD's in the stock game. don't worry, the chance is small that it is still there, as testing prooves it is solved. i sure hope it goes in the final build 13. anyway, we can still rub it under disney's noses, to show the modders are so much better than them. <img src="style_emoticons/<#EMO_DIR#>/smile2.gif" style="vertical-align:middle" emoid=":))" border="0" alt="smile2.gif" /> gosh, i hate those guys for messing this up.
 
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->
...I'm just glad its fixed. You all will be able to get the fix in pieters next posting (either as an update to test out, or as build 13 final, depends on him).
<!--QuoteEnd--></div><!--QuoteEEnd-->

If people are testing this build right now, why wait?
If it's just a change in one line of code, why not post the corrected code and have them test it immediately?
 
I would like to know which line too. I´m working on something & don´t want to winmerge all my changed files to the latest version over & over again. So a fixed line could spare me some trouble & work.
 
Aye, I've a feeling the majority of us that chat regularly in this particular thread are saavy enough about the code that posting it here for us to peruse and test wouldn't be that bad a thing. Especially if its just a single line of code that needs changing.

Cap'n Drow
 
<!--quoteo(post=171143:date=Nov 12 2006, 02:39 PM:name=Cap'n_Drow)--><div class='quotetop'>QUOTE(Cap'n_Drow @ Nov 12 2006, 02:39 PM) [snapback]171143[/snapback]</div><div class='quotemain'><!--quotec-->
Aye, I've a feeling the majority of us that chat regularly in this particular thread are saavy enough about the code that posting it here for us to peruse and test wouldn't be that bad a thing. Especially if its just a single line of code that needs changing.

Cap'n Drow
<!--QuoteEnd--></div><!--QuoteEEnd-->
This was done extensively 2 years ago when we (and I do mean we) were Beta testing Build 12.
 
Ruh-Roh, Raggy... Does that mean you've actually figured out my secret? That I've been here before, long ago and just lost my old log-in and password?

If so, I guess the jig is up. **grins**

I'll go along quietly, constable.

Cap'n Drow
 
A quick and dirty fix. Look in PROGRAM/Particles.c for:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->int CreateBlastM(float x,float y,float z)
{<!--c2--></div><!--ec2-->

and add the following line

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->return CreateBlast(x,y,z);    // LDH 12Nov06 fix for CTD in a battle<!--c2--></div><!--ec2-->

so it looks like this:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->int CreateBlastM(float x,float y,float z)
{
return CreateBlast(x,y,z);    // LDH 12Nov06 fix for CTD in a battle<!--c2--></div><!--ec2-->

Hook
 
On the FTP, I posted my final fixes for pieter. They are changes I have from current beta 7 on up.

In it is the fix for the particles system. I made it a bit more elaborate than 1 line of code, but actually only one line of code is needed to fix it:

PROGRAM/particles.c
AFTER line #110 add "LayerAddObject(SEA_REALIZE,blast,3);" so that the function "CreateBlastM" looks like this:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->int CreateBlastM(float x,float y,float z)
{
    int iRes;
    object blast;
    iRes = CreateEntity(&blast,"blast");
    SendMessage(&blast,"lfff",LM_SETPOINT,x,y,z);
    LayerAddObject("realize",blast,3);
    LayerAddObject(SEA_REALIZE,blast,3);
    return iRes;
}
<!--c2--></div><!--ec2-->
Yes, that makes it exactly like 'CreateBlast'... but that is the bug, the mising line of code.


EDIT:
or yeah, do what hook just posted a few seconds before me <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
 
i'll just wait until it is added to the build, thank you. <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
Use Hat's fix instead of mine. That code was what I used to test. But it's one line in any case. <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

Hook
 
<img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" /> all around! nice one - i've been photoshopping today, so what a nice surprise to find - the CTD dead and buried(touch wood!). <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />

Build13 must be just around the corner?
 
yep, the last date i heard was the biginning of december. but it appears to be sooner. yay! <img src="style_emoticons/<#EMO_DIR#>/bounce.gif" style="vertical-align:middle" emoid=":b:" border="0" alt="bounce.gif" />
 
Back
Top