• 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!

Hi.

GLOBALS.C!!! <img src="style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" /> Found it! there's that thing/trick - set <i>int DEBUG = 0;</i> to <i>int DEBUG = 1;</i>. <img src="style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" />

And yes Petros it does seem that it's Build 12 and 13 thing only what you suggested. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
<!--quoteo(post=224681:date=Dec 6 2007, 07:37 PM:name=Apofis)--><div class='quotetop'>QUOTE(Apofis @ Dec 6 2007, 07:37 PM) [snapback]224681[/snapback]</div><div class='quotemain'><!--quotec-->I don't particularly care about the other side. xD As long as the people I'm charging at can get my message then I don't care about the back.<!--QuoteEnd--></div><!--QuoteEEnd-->In that case just mirroring the image should do the trick. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />

<!--quoteo(post=224713:date=Dec 6 2007, 11:20 PM:name=Apofis)--><div class='quotetop'>QUOTE(Apofis @ Dec 6 2007, 11:20 PM) [snapback]224713[/snapback]</div><div class='quotemain'><!--quotec-->And don't tell me who made that place. Because if I find out who decided to give it about 8 different levels, multiple passage ways and god knows how many entrances and exits I will kill them. xD<!--QuoteEnd--></div><!--QuoteEEnd-->There's two "dungeons". There is the "normal" dungeon below Oxbay where you sometimes have pirates and sometimes skeletons. If you're doing a treasure quest, this is where the treasure is hidden. Then there is the labyrinth below the Greenford Maltese Knight Abbey that is haunted by ghost monks. Here are some digging spots where you can find treasure or evil stuff. <img src="style_emoticons/<#EMO_DIR#>/whistling.gif" style="vertical-align:middle" emoid=":wp" border="0" alt="whistling.gif" />
If you don't want to know who made it, I won't tell you. <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
BTW: In my most recent game version, these digging spots don't work right anymore. Not sure since when that is. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />

<!--quoteo(post=224722:date=Dec 7 2007, 12:45 AM:name=Petros)--><div class='quotetop'>QUOTE(Petros @ Dec 7 2007, 12:45 AM) [snapback]224722[/snapback]</div><div class='quotemain'><!--quotec-->But then again, I'm not sure if that allows you to see the clothes at the tailors, or adds all the clothes to your inventory.<!--QuoteEnd--></div><!--QuoteEEnd-->Both is true. In debug mode, you have all outfits available straight away, but you can also view them all at the tailor's shops. Choose the <i>"Don't show me the average stock, I know you can offer more! And do it quick!"</i> option.

<!--quoteo(post=224792:date=Dec 7 2007, 07:22 PM:name=Petros)--><div class='quotetop'>QUOTE(Petros @ Dec 7 2007, 07:22 PM) [snapback]224792[/snapback]</div><div class='quotemain'><!--quotec-->Then it is a Build 12 and 13 thing only?
I don't know where or even if debug code is used in Build 14.
Others will have to answer this.<!--QuoteEnd--></div><!--QuoteEEnd-->Should work in Build 14 just as well as in Build 13. I used the debug mode pretty recently in the Build 14 Alpha. The code you posted looks like it should do exactly what you say. <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />

<!--quoteo(post=224770:date=Dec 7 2007, 04:35 PM:name=Cylon13)--><div class='quotetop'>QUOTE(Cylon13 @ Dec 7 2007, 04:35 PM) [snapback]224770[/snapback]</div><div class='quotemain'><!--quotec-->Didn't work. <img src="style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->What happens if you DO open the "Choose outfit" menu after enabeling the debug mode? Do you get all skins there? If so, the debug mode IS enabled. If not, something REALLY weird is going on. <img src="style_emoticons/<#EMO_DIR#>/wacko.gif" style="vertical-align:middle" emoid=":wacko:" border="0" alt="wacko.gif" />
 
<!--quoteo(post=224797:date=Dec 7 2007, 02:01 PM:name=Cylon13)--><div class='quotetop'>QUOTE(Cylon13 @ Dec 7 2007, 02:01 PM) [snapback]224797[/snapback]</div><div class='quotemain'><!--quotec-->GLOBALS.C!!! <img src="style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" /> Found it! there's that thing/trick - set <i>int DEBUG = 0;</i> to <i>int DEBUG = 1;</i>. <img src="style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" />

And yes Petros it does seem that it's Build 12 and 13 thing only what you suggested. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->

That is in Build 13, but requires a new game.

Are you saying that it is in Build 14 as well?
 
<!--quoteo(post=224801:date=Dec 7 2007, 08:27 PM:name=Petros)--><div class='quotetop'>QUOTE(Petros @ Dec 7 2007, 08:27 PM) [snapback]224801[/snapback]</div><div class='quotemain'><!--quotec-->That is in Build 13, but requires a new game.<!--QuoteEnd--></div><!--QuoteEEnd-->To Petros, you listen. :wink

<!--quoteo(post=224801:date=Dec 7 2007, 08:27 PM:name=Petros)--><div class='quotetop'>QUOTE(Petros @ Dec 7 2007, 08:27 PM) [snapback]224801[/snapback]</div><div class='quotemain'><!--quotec-->Are you saying that it is in Build 14 as well?<!--QuoteEnd--></div><!--QuoteEEnd-->Yep; it's still in there. Nobody removed it. I used it pretty recently. I didn't check the tailors shop, but I did check all models in the Choose Outfit screen. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
 
<!--quoteo(post=224803:date=Dec 7 2007, 02:35 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE(Pieter Boelen @ Dec 7 2007, 02:35 PM) [snapback]224803[/snapback]</div><div class='quotemain'><!--quotec-->...<!--quoteo(post=224801:date=Dec 7 2007, 08:27 PM:name=Petros)--><div class='quotetop'>QUOTE(Petros @ Dec 7 2007, 08:27 PM) [snapback]224801[/snapback]</div><div class='quotemain'><!--quotec-->Are you saying that it is in Build 14 as well?<!--QuoteEnd--></div><!--QuoteEEnd-->Yep; it's still in there. Nobody removed it. I used it pretty recently. I didn't check the tailors shop, but I did check all models in the Choose Outfit screen. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->
Hmmm then I'm guessing that Cylon13 is not getting the console set up right, with what I posted.
 
<!--quoteo(post=224804:date=Dec 7 2007, 09:40 PM:name=Petros)--><div class='quotetop'>QUOTE(Petros @ Dec 7 2007, 09:40 PM) [snapback]224804[/snapback]</div><div class='quotemain'><!--quotec-->Hmmm then I'm guessing that Cylon13 is not getting the console set up right, with what I posted.<!--QuoteEnd--></div><!--QuoteEEnd-->

I DID what you were telling to do but nothing happened. <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />
 
Ok:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->// Jerry-rigged console file.
//put code under ExecuteConsole() below.
//NK 04-08-28
// not needed I think extern void InitShips();
#include "SDK\LocatorWrite.c"
#include "Upgrade.c";
extern void InitItems();
extern void InitCannons();

void ExecuteConsole()
{
    ref pchar = GetMainCharacter();
    ref ch;
    int i;

if(DEBUG)
{DEBUG = 0;
logit("Debug Mode Turned Off");}
else
{DEBUG = 1;
logit("Debug Mode Turned On");}

    // ccc Nov06  Directsail, displays your position in relation to island
    if( bSeaActive && !bAbordageStarted )
    {
      string xtext, ztext;
      int pX = MakeInt(pchar.ship.pos.x);
      int pZ = MakeInt(pchar.ship.pos.Z);
      if(pX<0){xtext = "(east)";}else{xtext = "(west)";}
      if(pZ<0){ztext = "(north)";}else{ztext = "(south)";}
    LogIt("Our position from "+pchar.location+": "+pZ+" "+ztext+", "+pX+" "+xtext);

    return;    // this aborts here, so the rest of console.c doesn't run, unless you delete this line
      }
    // ccc Nov06 end

    Trace("Console worldMap.playerShipx " + worldMap.playerShipx + " worldMap.playerShipz: " + worldMap.playerShipz );
    Logit("Console worldMap.playerShipx " + worldMap.playerShipx + " worldMap.playerShipz: " + worldMap.playerShipz );<!--c2--></div><!--ec2-->
 
OK, you've been using console.c to do other things, and that's OK, except some code has gotten messed up.

I don't know exactly what the other code should look like but you have one too many "{"s vs "}"s.
The number must be equal.

Let's start fresh.

This is what a clean console should look like.
Use it as a starting point every time you need to use the console for a unique task. <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->// Jerry-rigged console file.
//put code under ExecuteConsole() below.
//NK 04-08-28
// not needed I think extern void InitShips();
#include "SDK\LocatorWrite.c"
#include "Upgrade.c";
extern void InitItems();
extern void InitCannons();

void ExecuteConsole()
{
    ref pchar = GetMainCharacter();
    ref ch;
    int i;

    //PUT CODE HERE
    //PUT CODE HERE
    //PUT CODE HERE

    LogIt("Executed Console");
}<!--c2--></div><!--ec2-->

Now in the case of "Debug" we replace the "//PUT CODE HERE" lines with <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if(DEBUG)
{DEBUG = 0;
logit("Debug Mode Turned Off");}
else
{DEBUG = 1;
logit("Debug Mode Turned On");}<!--c2--></div><!--ec2-->

That will give you <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->// Jerry-rigged console file.
//put code under ExecuteConsole() below.
//NK 04-08-28
// not needed I think extern void InitShips();
#include "SDK\LocatorWrite.c"
#include "Upgrade.c";
extern void InitItems();
extern void InitCannons();

void ExecuteConsole()
{
    ref pchar = GetMainCharacter();
    ref ch;
    int i;

if(DEBUG)
{DEBUG = 0;
logit("Debug Mode Turned Off");}
else
{DEBUG = 1;
logit("Debug Mode Turned On");}

    LogIt("Executed Console");
}<!--c2--></div><!--ec2-->
Enjoy!
 
Thanks but i'll stay with my globals.c trick. <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />
I saved your code to my HD anyways so i don't have to ask next time i need help with the same thing. <img src="style_emoticons/<#EMO_DIR#>/bow.gif" style="vertical-align:middle" emoid=":bow" border="0" alt="bow.gif" />
 
The code Cylon13 has in his console.c file has been there ever since Build 13. It's some testing-code from CouchcaptainCharles and Nathan Kell. Most of it is commented out and there is some really useful stuff in there. But if you don't need that code, it doesn't hurt to clean up the console. <img src="style_emoticons/<#EMO_DIR#>/no.gif" style="vertical-align:middle" emoid=":no" border="0" alt="no.gif" />
 
Back
Top