1. Dismiss Notice
  2. GOG.com logo

    Thanks to YOUR votes, GOG.com now sells:
    - Sea Dogs - Sea Dogs: Caribbean Tales
    - Sea Dogs: City of Abandoned Ships

    Vote now to add Pirates of the Caribbean to the list!

    Dismiss Notice
  3. Under the Crossbones Podcast

    A Pirate Podcast with Interviews
    Music, Comedy and all things Pirate!

    - Episode Guide - About - Subscribe -
    - Twitter - Facebook - iTunes - Android -
    - Youtube - Fill the Coffers -

    Dismiss Notice
  4. New Horizons logo

    Quick links for PotC: New Horizons
    - Download latest version
    - Wiki - FAQ - Report bugs here
    - ModDB profile

  5. GOF logo

    Quick links for AoP2: Gentlemen of Fortune 2
    - Downloads and info
    - Historical Immersion Supermod
    - ModDB Profile

Dismiss Notice
New to the forum?
Please take a moment to read our Welcome Message and Forum Rules.

Solved Ship Names Limited by Class and Type

Discussion in 'Age of Pirates Modding' started by Modder01, Sep 8, 2017.

  1. ChezJfrey

    ChezJfrey Sailor Storm Modder

    Joined:
    Apr 24, 2015
    Messages:
    150
    Right now, whether the models/textures are readable will not have an effect on whether the game can compile your script code, so unless you have actual syntax errors (which you do in either islands_loader.c, or another included program) the validity of the model or texture files themselves are not yet the issue. The first place to look is the islands_loader.c program and if nothing wrong there, look at the top of that program and any of the includes it contains (they might have the syntax error, instead). Of course if those includes themselves have includes, the problem could reside in those. It can get tricky to figure out the problem.

    Often, the line number indicated is the problem, but a fair amount of time (especially with missing close braces, or parens, or quotes) it is misleading and the error is somewhere else. One technique is to make a copy for saving original state, then remove entire body of functions (retain the actual function definition, as it needs to stay...just remove the 'guts' of the function), save, then relaunch. Keep doing that until the error goes away and the very last removal you did contains a syntax error.
     
  2. Modder01

    Modder01 Master Mariner Storm Modder

    Joined:
    Feb 1, 2014
    Messages:
    213
    Gender:
    Male
    Location:
    Oxford, Michigan, USA
    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.
     

    Attached Files:

  3. ChezJfrey

    ChezJfrey Sailor Storm Modder

    Joined:
    Apr 24, 2015
    Messages:
    150
    Indeed. That file is unchanged and matches mine. Well this is unfortunate as you have now run into a completely erroneous error, meaning there is indeed a syntax problem, but it exists somewhere in an entirely different file than what the error specifies. I have a copy of your latest ships.c file, with those changes for the England names, and I do not have a compile error and the islands_loader.c you sent matches mine exactly; your error is somewhere in another file you changed.

    You need to identify all the files you recently changed, and one by one, revert them to what they were before the change, launch the game, then do another. Until you at least identify what file is really causing your game to not compile. Once you do that, put the prior ones back to your recent-changed version (except the one you just identified), to be sure it is just that one last file you identified that is causing the problem. Then, we go about finding the offending syntax in the .c causing the error.
     
  4. Modder01

    Modder01 Master Mariner Storm Modder

    Joined:
    Feb 1, 2014
    Messages:
    213
    Gender:
    Male
    Location:
    Oxford, Michigan, USA
    All recently changed files are attached (exceptions are models and textures)
     

    Attached Files:

  5. Modder01

    Modder01 Master Mariner Storm Modder

    Joined:
    Feb 1, 2014
    Messages:
    213
    Gender:
    Male
    Location:
    Oxford, Michigan, USA
    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 Expression
    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
    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
    Undeclared identifier: FindClosestShipofRel
     
  6. Modder01

    Modder01 Master Mariner Storm Modder

    Joined:
    Feb 1, 2014
    Messages:
    213
    Gender:
    Male
    Location:
    Oxford, Michigan, USA
    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 is smaller and has less weathers than this file.

    Edit3: After commenting out both mentions of Findclosestshiprel, but leaving everything else alone, The game boots, but is unsuccessful- even in safe mode... No error log. Compile and system log files don't tell me anything...
     
    Last edited: Sep 10, 2017
  7. Modder01

    Modder01 Master Mariner Storm Modder

    Joined:
    Feb 1, 2014
    Messages:
    213
    Gender:
    Male
    Location:
    Oxford, Michigan, USA
    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 ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: ships\ships.c; line: 40
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 40
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 43
    missed attribute: merchant
    RUNTIME ERROR - file: ships\ships.c; line: 43
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    RUNTIME ERROR - file: ships\ships.c; line: 46
    missed attribute: class
    RUNTIME ERROR - file: ships\ships.c; line: 46
    no rAP data
    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: battle_interface\BattleInterface.c; line: 2468
    missed attribute: fastreload
    RUNTIME ERROR - file: battle_interface\BattleInterface.c; line: 2468
    no rAP data
     
  8. ChezJfrey

    ChezJfrey Sailor Storm Modder

    Joined:
    Apr 24, 2015
    Messages:
    150
    Looks like the entire set of ship attributes are not copied to a character. Try this instead:

    Maybe ref rShip = RealShips[sti(rCharacter.ship.type)];

    Then use rShip for the attributes you are testing (e.g. .type.merchant, .type.class, .type.war).

    Or go further to the base ship array:

    int iShipType = sti(RealShips[sti(rCharacter.ship.type)].basetype);

    ShipsTypes[iShipType].type.merchant....
     
  9. Modder01

    Modder01 Master Mariner Storm Modder

    Joined:
    Feb 1, 2014
    Messages:
    213
    Gender:
    Male
    Location:
    Oxford, Michigan, USA
    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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    invalid array index
    RUNTIME ERROR - file: scripts\rangers.c; line: 681
    function 'RepairRangerShip' stack error
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    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: 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: 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: battle_interface\BattleInterface.c; line: 2468
    missed attribute: fastreload
    RUNTIME ERROR - file: battle_interface\BattleInterface.c; line: 2468
    no rAP data
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: interface\map.c; line: 153
    missed attribute: name
    RUNTIME ERROR - file: interface\map.c; line: 153
    no rAP data
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: scripts\ShipsUtilites.c; line: 12
    function 'GetRealShip' stack error
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    Using reference variable without initializing
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    null ap
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 137
    no rAP data
    RUNTIME ERROR - file: sea_ai\AICannon.c; line: 145
    Divide by zero
    RUNTIME ERROR - file: battle_interface\BattleInterface.c; line: 2468
    missed attribute: fastreload
    RUNTIME ERROR - file: battle_interface\BattleInterface.c; line: 2468
    no rAP data
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    Invalid index 1000 [size:1000]
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    invalid array index
    RUNTIME ERROR - file: battle_interface\ispyglass.c; line: 110
    process event stack error

    int iShipType errors:
    COMPILE ERROR - file: ships\ships.c; line: 44
    Invalid Expression
    COMPILE ERROR - file: ships\ships.c; line: 44
    Invalid Expression
    COMPILE ERROR - file: ships\ships.c; line: 44
    Invalid Expression
    COMPILE ERROR - file: ships\ships.c; line: 44
    Invalid Expression
    COMPILE ERROR - file: ships\ships.c; line: 44
    Invalid Expression
    COMPILE ERROR - file: ships\ships.c; line: 44
    Invalid Expression
    COMPILE ERROR - file: ships\ships.c; line: 44
    Invalid Expression
    COMPILE ERROR - file: ships\ships.c; line: 44
    invalid function argument
    COMPILE ERROR - file: ships\ships.c; line: 44
    Invalid Expression
    COMPILE ERROR - file: ships\ships.c; line: 44
    Invalid Expression
    COMPILE ERROR - file: ships\ships.c; line: 44
    Invalid Expression
    COMPILE ERROR - file: ships\ships.c; line: 44
    Invalid Expression
    COMPILE ERROR - file: ships\ships.c; line: 44
    Invalid Expression
    COMPILE ERROR - file: ships\ships.c; line: 44
    Invalid Expression
    COMPILE ERROR - file: ships\ships.c; line: 44
    missed ')'
     
  10. ChezJfrey

    ChezJfrey Sailor Storm Modder

    Joined:
    Apr 24, 2015
    Messages:
    150
    I was firing from the top of my head when I posted. I tried it, got an error, but found the proper syntax should be (add the ampersand):

    ref rShip = &RealShips[sti(rCharacter.ship.type)];

    Also, unrelated, I saw another error in the log. I have two messages for flag init, so in locations_loader.c, change line 739

    SendMessage(&Flag, "lil", MSG_FLAG_INIT_NOCHAR, &mdl, GetLocationNation(loc));

    Since it is not sending a fourth parameter character model reference (which we can now do in the engine) after the nation parm.
     
  11. Modder01

    Modder01 Master Mariner Storm Modder

    Joined:
    Feb 1, 2014
    Messages:
    213
    Gender:
    Male
    Location:
    Oxford, Michigan, USA
    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: 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: 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: 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: 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: 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: 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: 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: utils.c; line: 35
    Invalid string argument
    RUNTIME ERROR - file: utils.c; line: 39
    Invalid string argument
    RUNTIME ERROR - file: ships\ships.c; line: 72
    Invalid index -1 [size:1]
    RUNTIME ERROR - file: ships\ships.c; line: 72
    invalid ref
    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: 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: 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: 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: 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: utils.c; line: 35
    Invalid string argument
    RUNTIME ERROR - file: utils.c; line: 39
    Invalid string argument
    RUNTIME ERROR - file: ships\ships.c; line: 72
    Invalid index -1 [size:1]
    RUNTIME ERROR - file: ships\ships.c; line: 72
    invalid ref
    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: ships\ships.c; line: 72
    Invalid index -1 [size:1]
    RUNTIME ERROR - file: ships\ships.c; line: 72
    invalid ref
    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: utils.c; line: 35
    Invalid string argument
    RUNTIME ERROR - file: utils.c; line: 39
    Invalid string argument
    RUNTIME ERROR - file: ships\ships.c; line: 72
    Invalid index -1 [size:1]
    RUNTIME ERROR - file: ships\ships.c; line: 72
    invalid ref
    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: utils.c; line: 35
    Invalid string argument
    RUNTIME ERROR - file: utils.c; line: 39
    Invalid string argument
    RUNTIME ERROR - file: ships\ships.c; line: 72
    Invalid index -1 [size:1]
    RUNTIME ERROR - file: ships\ships.c; line: 72
    invalid ref
    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: ships\ships.c; line: 72
    Invalid index -1 [size:1]
    RUNTIME ERROR - file: ships\ships.c; line: 72
    invalid ref
    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: ships\ships.c; line: 72
    Invalid index -1 [size:1]
    RUNTIME ERROR - file: ships\ships.c; line: 72
    invalid ref
    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: utils.c; line: 35
    Invalid string argument
    RUNTIME ERROR - file: utils.c; line: 39
    Invalid string argument
    RUNTIME ERROR - file: battle_interface\BattleInterface.c; line: 2468
    missed attribute: fastreload
    RUNTIME ERROR - file: battle_interface\BattleInterface.c; line: 2468
    no rAP data

    Note: Expect next response to your response Chez in 8-9 Hours from this post. Going to bed.
     
    Last edited: Sep 11, 2017
  12. ChezJfrey

    ChezJfrey Sailor Storm Modder

    Joined:
    Apr 24, 2015
    Messages:
    150
    Well now you should put some checks, before using that attribute to set the ref:

    if(!CheckAttribute(rCharacter,"ship.type"))
    {
    //Do something other than set ship ref...also don't continue with the code example below that shows setting st integer
    }

    int st = sti(rCharacter.ship.type);
    if(st==SHIP_NOTUSED)
    {
    //Do something other than set ship ref because a ship is not used
    }
    if(st < 0 || st >=SHIP_TYPES_QUANTITY_WITH_FORT)
    //This is an invalid index, so do something other than set ship ref with RealShips

    ref rShip = &RealShips[st];

    Should probably check the rShip similarly for CheckAttribute(rShip, "type.merchant") before attempting to use...that sort of thing
     
  13. Modder01

    Modder01 Master Mariner Storm Modder

    Joined:
    Feb 1, 2014
    Messages:
    213
    Gender:
    Male
    Location:
    Oxford, Michigan, USA
    How's this?
    Code:
        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
       } else {
           if(st < 0 || st >=SHIP_TYPES_QUANTITY_WITH_FORT) {
               //This is an invalid index, so do something other than set ship ref with RealShips
           } else {
               ref rShip = &RealShips[sti(rCharacter.ship.type)];
           }
       if(!CheckAttribute(rShip, "type.merchant")) {
         
       } else {
           if(!CheckAttribute(rCharacter, "nation"))
           {
               rCharacter.nation = PIRATE;
           }
           if(sti(rCharacter.nation) == -1)
           {
               rCharacter.nation = PIRATE;
           }
    
           switch (sti(rCharacter.nation))
           {
               case ENGLAND:
                   if(sti(rShip.type.merchant)==true && sti(rShip.type.war)==true){
                       makeref(rMassiveOfNames, sRndShpEnHybName);
                   }else {
                       if(sti(rShip.type.merchant)==true){
                           makeref(rMassiveOfNames, sRndShpEnTraName);
                       } else {
                           if((sti(rShip.class) <= 6) && (sti(rShip.class) >= 3)) {
                               makeref(rMassiveOfNames, sRndShpEnSmWarName);
                           } else {
                               makeref(rMassiveOfNames, sRndShpEnLgWarName);
                           }
                       }
                   } //This one was added
               break;
               case FRANCE:
                   makeref(rMassiveOfNames, sRndShpFrName);
               break;
               case SPAIN:
                   makeref(rMassiveOfNames, sRndShpSpName);
               break;
               case PIRATE:
                   makeref(rMassiveOfNames, sRndShpPiName);
               break;
               case HOLLAND:
                   makeref(rMassiveOfNames, sRndShpHoName);
               break;
               case SMUGGLER:
                   makeref(rMassiveOfNames, sRndShpPiName);
               break;
           }
           int iMassiveOfNamesSize = GetArraySize(rMassiveOfNames);
           rCharacter.Ship.Name = GetRandSubString(rMassiveOfNames[rand(iMassiveOfNamesSize-2)]);
       } 
    
    Now when doing the checks the game refuses to boot and it says:
    duplicate variable name rShip.
     
  14. pedrwyth

    pedrwyth Privateer Storm Modder

    Joined:
    Jan 8, 2015
    Messages:
    607
    Gender:
    Male
    You seem to have ref rship declarations on 2 lines
    Code:
      ref rShip; <----  1st declaration
        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
       } else {
           if(st < 0 || st >=SHIP_TYPES_QUANTITY_WITH_FORT) {
               //This is an invalid index, so do something other than set ship ref with RealShips
           } else {
               ref rShip = &RealShips[sti(rCharacter.ship.type)];  <--- 2nd declaration
    so perhaps amend 2nd to just
    rShip = &RealShips[sti(rCharacter.ship.type)]; (or remove the first line)

    also when @ChezJfrey put "do something" in a comment (I think) he meant for you to actually get the code to do something - even if only a trace line to log the missed attribute or invalid index as appropriate and then skip the rest . Then you can start to make some progress on finding what the root problem is. Well, at least once it boots again.
     
  15. Modder01

    Modder01 Master Mariner Storm Modder

    Joined:
    Feb 1, 2014
    Messages:
    213
    Gender:
    Male
    Location:
    Oxford, Michigan, USA
    New:
    Code:
        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 >=SHIP_TYPES_QUANTITY_WITH_FORT) {
               trace("~~ Invalid Index of ship type");
           } else {
               rShip = &RealShips[sti(rCharacter.ship.type)];
           }
       if(!CheckAttribute(rShip, "type.merchant")) {
           trace("~~ type.merchant Invalid for rShip");
       } else {
           if(!CheckAttribute(rCharacter, "nation"))
           {
               rCharacter.nation = PIRATE;
           }
           if(sti(rCharacter.nation) == -1)
           {
               rCharacter.nation = PIRATE;
           }
    
           switch (sti(rCharacter.nation))
           {
               case ENGLAND:
                   if(sti(rShip.type.merchant)==true && sti(rShip.type.war)==true){
                       makeref(rMassiveOfNames, sRndShpEnHybName);
                   }else {
                       if(sti(rShip.type.merchant)==true){
                           makeref(rMassiveOfNames, sRndShpEnTraName);
                       } else {
                           if((sti(rShip.class) <= 6) && (sti(rShip.class) >= 3)) {
                               makeref(rMassiveOfNames, sRndShpEnSmWarName);
                           } else {
                               makeref(rMassiveOfNames, sRndShpEnLgWarName);
                           }
                       }
                   } //This one was added
               break;
               case FRANCE:
                   makeref(rMassiveOfNames, sRndShpFrName);
               break;
               case SPAIN:
                   makeref(rMassiveOfNames, sRndShpSpName);
               break;
               case PIRATE:
                   makeref(rMassiveOfNames, sRndShpPiName);
               break;
               case HOLLAND:
                   makeref(rMassiveOfNames, sRndShpHoName);
               break;
               case SMUGGLER:
                   makeref(rMassiveOfNames, sRndShpPiName);
               break;
           }
           int iMassiveOfNamesSize = GetArraySize(rMassiveOfNames);
           string sName = GetRandSubString(rMassiveOfNames[rand(iMassiveOfNamesSize-2)]);
       }   
    
    Now getting error for dupilicate rCharacter variable.
     
  16. ChezJfrey

    ChezJfrey Sailor Storm Modder

    Joined:
    Apr 24, 2015
    Messages:
    150
    I tried to match your intention:

    Code:
    void SetRandomNameToShip(ref rCharacter)
    {
        ref rMassiveOfNames;
    
        int st = -1;
        bool isMerchant = false;
        bool isWar = false;
        int nClass = 7;
    
       if(CheckAttribute(rCharacter,"ship.type"))
            st = sti(rCharacter.ship.type);
    
       if(st >= 0 && st < SHIP_TYPES_QUANTITY_WITH_FORT) {
           ref rShip = &RealShips[st];
           if(CheckAttribute(rShip, "type.merchant" && sti(rShip.type.merchant)==true)) {
                isMerchant = true;
           }
           else  {
                if(CheckAttribute(rShip, "type.war" && sti(rShip.type.war)==true))
                isWar = true;
           }
           if(CheckAttribute(rShip, "Class"))
                nClass = sti(rShip.Class);
       }
    
        if(!CheckAttribute(rCharacter, "nation"))
        {
            rCharacter.nation = PIRATE;
        }
        if(sti(rCharacter.nation) == -1)
        {
            rCharacter.nation = PIRATE;
        }
    
        switch (sti(rCharacter.nation))
        {
            case ENGLAND:
                if(isMerchant==true && isWar==true){
                    makeref(rMassiveOfNames, sRndShpEnHybName);
                }else {
                    if(isMerchant==true){
                        makeref(rMassiveOfNames, sRndShpEnTraName);
                    }
                    else {
                        if(nClass <= 6 && nClass >= 3) {
                            makeref(rMassiveOfNames, sRndShpEnSmWarName);
                        } else {
                            makeref(rMassiveOfNames, sRndShpEnLgWarName);
                        }
                    }
                }
            break;
            case FRANCE:
                makeref(rMassiveOfNames, sRndShpFrName);
            break;
            case SPAIN:
                makeref(rMassiveOfNames, sRndShpSpName);
            break;
            case PIRATE:
                makeref(rMassiveOfNames, sRndShpPiName);
            break;
            case HOLLAND:
                makeref(rMassiveOfNames, sRndShpHoName);
            break;
            case SMUGGLER:
                makeref(rMassiveOfNames, sRndShpPiName);
            break;
        }
        int iMassiveOfNamesSize = GetArraySize(rMassiveOfNames);
        rCharacter.Ship.Name = GetRandSubString(rMassiveOfNames[rand(iMassiveOfNamesSize-2)]);
    }
     
    Last edited: Sep 11, 2017
  17. Modder01

    Modder01 Master Mariner Storm Modder

    Joined:
    Feb 1, 2014
    Messages:
    213
    Gender:
    Male
    Location:
    Oxford, Michigan, USA
    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 not get an assignment. That reminds me in ships.c I need to check for tartane and defer it to trader, or change the ships init values for trade and war in both those ships so that it can be a trade ship and receive trader names..
     
  18. Modder01

    Modder01 Master Mariner Storm Modder

    Joined:
    Feb 1, 2014
    Messages:
    213
    Gender:
    Male
    Location:
    Oxford, Michigan, USA
    Latest error after the code was changed to this and Tartane and WarTartane became trader=true:
    Code:
    void SetRandomNameToShip(ref rCharacter)
    {
       ref rMassiveOfNames;
        int st = -1;
        bool isMerchant = false;
        bool isWar = false;
        int nClass = 7;
    
        if(CheckAttribute(rCharacter,"ship.type"))
             st = sti(rCharacter.ship.type);
    
        if(st >= 0 && st < SHIP_TYPES_QUANTITY_WITH_FORT) {
            ref rShip = &RealShips[st];
           if(CheckAttribute(rShip, "type.merchant" && sti(rShip.type.merchant)==true)) {
               isMerchant = true;
            }
            else  {
                if(CheckAttribute(rShip, "type.war" && sti(rShip.type.war)==true))
                isWar = true;
            }
            if(CheckAttribute(rShip, "Class"))
                nClass = sti(rShip.Class);
        }
    
        if(!CheckAttribute(rCharacter, "nation"))
        {
            rCharacter.nation = PIRATE;
        }
        if(sti(rCharacter.nation) == -1)
        {
            rCharacter.nation = PIRATE;
        }
    
        switch (sti(rCharacter.nation))
        {
            case ENGLAND:
                if(isMerchant==true && isWar==true){
                    makeref(rMassiveOfNames, sRndShpEnHybName);
                }else {
                    if(isMerchant==true){
                        makeref(rMassiveOfNames, sRndShpEnTraName);
                    }
                    else {
                        if((nClass <= 6)) { //This part will never be true && (nClass >= 3)) {
                            makeref(rMassiveOfNames, sRndShpEnSmWarName);
                        } else {
                            makeref(rMassiveOfNames, sRndShpEnLgWarName);
                        }
                    }
                }
            break;
            case FRANCE:
                makeref(rMassiveOfNames, sRndShpFrName);
            break;
            case SPAIN:
                makeref(rMassiveOfNames, sRndShpSpName);
            break;
            case PIRATE:
                makeref(rMassiveOfNames, sRndShpPiName);
            break;
            case HOLLAND:
                makeref(rMassiveOfNames, sRndShpHoName);
            break;
            case SMUGGLER:
                makeref(rMassiveOfNames, sRndShpPiName);
            break;
        }
        int iMassiveOfNamesSize = GetArraySize(rMassiveOfNames);
        rCharacter.Ship.Name = GetRandSubString(rMassiveOfNames[rand(iMassiveOfNamesSize-2)]);  
    }
    
    string generateRandomNameToShip(int iNation, ref rCharacter)
    {
       ref rMassiveOfNames;
        int st = -1;
        bool isMerchant = false;
        bool isWar = false;
        int nClass = 7;
    
        if(CheckAttribute(rCharacter,"ship.type"))
            st = sti(rCharacter.ship.type);
    
        if(st >= 0 && st < SHIP_TYPES_QUANTITY_WITH_FORT) {
            ref rShip = &RealShips[st];
            if(CheckAttribute(rShip, "type.merchant" && sti(rShip.type.merchant)==true)) {
                isMerchant = true;
            }
            else  {
                if(CheckAttribute(rShip, "type.war" && sti(rShip.type.war)==true))
                isWar = true;
            }
            if(CheckAttribute(rShip, "Class"))
                nClass = sti(rShip.Class);
        }
    
        if(!CheckAttribute(rCharacter, "nation"))
        {
            rCharacter.nation = PIRATE;
        }
        if(sti(rCharacter.nation) == -1)
        {
            rCharacter.nation = PIRATE;
        }
    
        switch (sti(rCharacter.nation))
        {
            case ENGLAND:
                if(isMerchant==true && isWar==true){
                    makeref(rMassiveOfNames, sRndShpEnHybName);
                }else {
                    if(isMerchant==true){
                        makeref(rMassiveOfNames, sRndShpEnTraName);
                    }
                    else {
                        if((nClass <= 6)) { //This part will never be true && (nClass >= 3)) {
                            makeref(rMassiveOfNames, sRndShpEnSmWarName);
                        } else {
                            makeref(rMassiveOfNames, sRndShpEnLgWarName);
                        }
                    }
                }
            break;
            case FRANCE:
                makeref(rMassiveOfNames, sRndShpFrName);
            break;
            case SPAIN:
                makeref(rMassiveOfNames, sRndShpSpName);
            break;
            case PIRATE:
                makeref(rMassiveOfNames, sRndShpPiName);
            break;
            case HOLLAND:
                makeref(rMassiveOfNames, sRndShpHoName);
            break;
            case SMUGGLER:
                makeref(rMassiveOfNames, sRndShpPiName);
            break;
        }
        int iMassiveOfNamesSize = GetArraySize(rMassiveOfNames);
       string sName = GetRandSubString(rMassiveOfNames[rand(iMassiveOfNamesSize-2)]);
       }  
       return sName;
    }
    
    COMPILE ERROR - file: Encounters\Encounters.c; line: 8
    Invalid array (MapEncounters) size
     
  19. ChezJfrey

    ChezJfrey Sailor Storm Modder

    Joined:
    Apr 24, 2015
    Messages:
    150
    First thing, unrelated to the error, is that I initially misread that 6 and 3 thing, and you must have read my post before I realized that part was OK and I put it back. I had originally misread it as trying to both be greater than 6 and less than 3, but then realized my mistake and put that back with an edit of my post.

    That function, as posted, exists in my copy of the game compiles and works fine, so you might have other changes I am unaware of, that are causing another compile error.
     
  20. Modder01

    Modder01 Master Mariner Storm Modder

    Joined:
    Feb 1, 2014
    Messages:
    213
    Gender:
    Male
    Location:
    Oxford, Michigan, USA
    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
     

Share This Page