• 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. Modder01

    Solved Ship Names Limited by Class and Type

    I use a new game every time I change the program code. it has become a habit of mine...
  2. Modder01

    Solved Ship Names Limited by Class and Type

    You're right, it runs, but there is a fair bit of runtime errors. When I look at the ships in the spyglass at least the english fort is not showing as another (dutch) ship anymore, but the english ships are still blank for their name... here is the error log again: RUNTIME ERROR - file...
  3. Modder01

    Solved Ship Names Limited by Class and Type

    Still get the error even though both functions are exact copies of the above... COMPILE ERROR - file: Encounters\Encounters.c; line: 8 Invalid array (MapEncounters) size
  4. Modder01

    Solved Ship Names Limited by Class and Type

    Latest error after the code was changed to this and Tartane and WarTartane became trader=true: void SetRandomNameToShip(ref rCharacter) { ref rMassiveOfNames; int st = -1; bool isMerchant = false; bool isWar = false; int nClass = 7...
  5. Modder01

    Solved Ship Names Limited by Class and Type

    My intention is to be within a number range. I thought c could identify a number that was in-between 6 and 3 and including 6 and 3 so basically what I am asking in that statement is if the ship class is 6<= number >=3 then use small warship name, else is for class 2 and 1 because tartanes will...
  6. Modder01

    Solved Ship Names Limited by Class and Type

    New: ref rShip; if(!CheckAttribute(rCharacter,"ship.type")) { trace("~~Ship.Type Invalid for rCharacter"); } else { int st = sti(rCharacter.ship.type); } if(st==SHIP_NOTUSED) { trace("~~Ship_Notused"); } else { if(st < 0 || st...
  7. Modder01

    Solved Ship Names Limited by Class and Type

    How's this? ref rShip; if(!CheckAttribute(rCharacter,"ship.type")) { //Do something other than set ship ref.. } else { int st = sti(rCharacter.ship.type); } if(st==SHIP_NOTUSED) { //Do something other than set ship ref because a ship is not used }...
  8. Modder01

    Solved Ship Names Limited by Class and Type

    New errors: RUNTIME ERROR - file: utils.c; line: 19 Invalid string argument RUNTIME ERROR - file: utils.c; line: 35 Invalid string argument RUNTIME ERROR - file: utils.c; line: 39 Invalid string argument RUNTIME ERROR - file: utils.c; line: 19 Invalid string argument RUNTIME ERROR - file...
  9. Modder01

    Solved Ship Names Limited by Class and Type

    ref rShip errors: RUNTIME ERROR - file: ships\ships.c; line: 28 Using reference variable without initializing RUNTIME ERROR - file: ships\ships.c; line: 28 no DST RUNTIME ERROR - file: ships\ships.c; line: 28 function 'SetRandomNameToShip' stack error RUNTIME ERROR - file: ships\ships.c; line...
  10. Modder01

    Solved Ship Names Limited by Class and Type

    I made a carbon copy of my school client (the state before my other changes at home bore fruit) and added the applicable files for the ship naming logic only. This is the error list at a fairly successful runtime: RUNTIME ERROR - file: ships\ships.c; line: 40 missed attribute: merchant RUNTIME...
  11. Modder01

    Solved Ship Names Limited by Class and Type

    O_O I found that in the original AOP:CT file, islands_loader.c is blank. Edit: When I comment out islands_loader.c, this error come up. COMPILE ERROR - file: weather\WhrWeather.c; line: 1213 Undeclared identifier: CheckIslandChange Edit2: I also found that the original AOP:CT WrWeather.c file...
  12. Modder01

    Solved Ship Names Limited by Class and Type

    Found a problem in ships.h. The quantity of ships was too much for the number (0-28=29 not 28). changed to accomodate that. now the error.log reads: COMPILE ERROR - file: islands\islands_loader.c; line: 63 Invalid Expression COMPILE ERROR - file: islands\islands_loader.c; line: 63 Invalid...
  13. Modder01

    Solved Ship Names Limited by Class and Type

    All recently changed files are attached (exceptions are models and textures)
  14. Modder01

    Solved Ship Names Limited by Class and Type

    The Islands_loader.c code is unfamiliar to me because it seems to be modified with GOF code... There are no includes. Here is the file.
  15. Modder01

    Solved Ship Names Limited by Class and Type

    Edited the file to the updated code above... now new errors... COMPILE ERROR - file: islands\islands_loader.c; line: 63 Invalid Expression COMPILE ERROR - file: islands\islands_loader.c; line: 63 Invalid Expression COMPILE ERROR - file: islands\islands_loader.c; line: 63 Invalid Expression...
  16. Modder01

    Solved Ship Names Limited by Class and Type

    Still gets the same two errors despite copying and pasting the above to replace.... COMPILE ERROR - file: ships\ships.c; line: 73 Duplicate variable name: rCharacter COMPILE ERROR - file: ships\ships.c; line: 73 Duplicate variable name: rMassiveOfNames
  17. Modder01

    Mod Release Age of Pirates: Caribbean Tales - Historical Immersion Supermod

    Minor Update: This project is being pushed to github to allow better synchronization between the two clients I have and also to allow contributions from other collaborators in the development. If you wish to help work on v5.0 and have a github, please let me know so I can add your github...
  18. Modder01

    Solved Ship Names Limited by Class and Type

    Thank you, that has been fixed. I always forget that C/C++ doesn't take the second argument of an && statement into account sometimes, unless it is the first if statement in the series. Attached is the full ships.c file with the edits from pedrwyth.
  19. Modder01

    Solved Ship Names Limited by Class and Type

    Done... now two errors pop up: COMPILE ERROR - file: ships\ships.c; line: 73 Duplicate variable name: rCharacter When rCharacter for the second logic is fixed, this shows up: COMPILE ERROR - file: ships\ships.c; line: 75 Duplicate variable name: rMassiveOfNames Note: This also points to the...
  20. Modder01

    Mod Release Age of Pirates: Caribbean Tales - Historical Immersion Supermod

    Another Update: 1. Added 2 more ships and updated two more: -Bermuda rigged sloop added to the game -Brigantine added to the game -Brig updated to the BrigSW model from COAS -Manowar updated by using the RN_FirstRate model from POTC -Related ships_init.c defs, ships.h defs, pictures.ini defs...
Back
Top