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

Search results

  1. K

    Solved Game ENGINE.exe crashes on startup in sea.dll

    I'm trying to run the vanilla PoTC on a Core 2 Duo machine running Windows XP SP3 but the game always crashes in sea.dll. I've never seen this issue before. The computer is up to date. My drivers are up to date. The video card supports up to DirectX 9.0c and everything checks out OK. I tried...
  2. K

    Discussion Are function argument types ever validated?

    This was a surprise. Are the argument types of declarations purely decoration? As far as I can tell, they are never tested by the parser. Note that this example has no runtime errors and every argument is effectively an "int" regardless of the type actually specified by the function definition...
  3. K

    Not a Bug Hiring Lucas Da Saldanha as an officer?

    I haven't played through all of the content yet so I can't confirm if this is a problem but there is some dead code here. PROGRAM\QUESTS\quests_side.c case "Lucas_officer": Characters[GetCharacterIndex("Lucas Da Saldanha")].dialog.Filename = "Enc_Officer_dialog.c"; // PB...
  4. K

    Need Help How to use #event_handler GetEventData()?

    It's unclear to me how #event_handler works and the behavior of GetEventData() is nebulous. Is it possible to create my own event handlers or is this something that is hard-coded? Also, where are the values from GetEventData() coming from?
  5. K

    Discussion Is the aref data type guaranteed to be read-only?

    At first I thought that the purpose of the 'aref' data type was to provide a reference to an object's attribute with all the functionality of a traditional reference. But to my surprise I found that assignments to these references had no effect! It's not possible to use the assignment operator...
  6. K

    Discussion What's the deal with array sizes of 1 throwing a runtime error?

    While testing out various data types available in the engine's scripting language I found an odd quirk. You can't have an array of size 1. An array of size 2 is fine: int list[2]; list[0] = 123; But an array of size 1 will error on assignment: int list[1]; list[0] = 123; // error.log...
  7. K

    Discussion Is there a use case for makeref()?

    I see makeref() used throughout various scripts but I don't see a valid use case for it and haven't been able to come up with a reason for its existence. I suspect that it may be an artifact of an earlier version of the scripting language before the '&' operator became available. Here is an...
  8. K

    How were .dll MODULES modified for New Horizons?

    I'm making my own modifications and I came access this line in init_pc.c: objControlsState.key_codes.VK_MBUTTON.img = "_";//MAXIMUS: picture added into pc_keyboard This appears to suggest that images are contained in MODULES/PC_CONTROLS.dll. I also noticed that all of the files in this folder...
  9. K

    Fixed Typo in 'DIALOGS/Smugglers_vs_Blythe.c'

    DIALOGS/Smugglers_vs_Blythe.c contains two instances of 'npchar.dialog.currnetnode'. This is a typo. The where 'currentnode' was mispelled. I'm new to this code and unfamiliar with the game so I don't know how this can impact gameplay but it's something I noticed while working with the code.
Back
Top