• New Horizons on Maelstrom
    Maelstrom New Horizons


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

New Cannon Locator

fittri2893

Landlubber
Hi everyone..

Recently, I just managed to get the Black Pearl and the Flying Dutchman into the game perfectly...

I change the amount of cannons in ship_init.c to a big number but the problem is tha actual firing is not that much..

I figured out that I need to create a new cannon locator using the Inez Dias tool but after trying many times, I cannot get it work..

Can anyone help me by giving a tutorial how to add cannon locators in the model using the tools?

Any help will be greatly appreciated..
 
Open TOOL
Load a model
klick on "View" and then "locators"

In the new window klick on "locators"

Tool shows all locators.

Add cannon locators like the other.
 
is it just that?

and what about the coordinates,where can i find the correct reference for the cannons

Thanks Yo,Ho,ho i really appreciace it
 
find the right coordinates is difficult.

open TOOL - Load Model
klick "scene", then "edit scene"

a new window opens, double klick there "cannon_x"

find with the three coordinate windows over the move it button the right position and note it.

your notes are the location coordinations for the locators.
 
ok, i found the coordinates which is X-5,9604 Y-0,309 X- -5,9604

so whats next...


sorry to bother you but i am a noob...
 
Open TOOL
Load a model
klick on "View" and then "locators"

In the new window klick on "locators"

Tool shows all locators.

Add cannon locators like the other.

Example leftside:
_20(or what ever) / cannonl(l for leftside) / -5,9604 (X) / -0,309 (Y) / -5,9604 (Z) / 1 / 0 / 0 / 0 / 1 / 0 / 0 / 0 / 1 / 1 / 0

rightside:
_20 / cannonr / -5,9604 / -0,309 / -5,9604 / 1 / 0 / 0 / 0 / 1 / 0 / 0 / 0 / 1 / 1 / 0

front:
_20 / cannonf / -5,9604 / -0,309 / -5,9604 / 1 / 0 / 0 / 0 / 1 / 0 / 0 / 0 / 1 / 1 / 0

back:
_20 / cannonb / -5,9604 / -0,309 / -5,9604 / 1 / 0 / 0 / 0 / 1 / 0 / 0 / 0 / 1 / 1 / 0
 
Ok,thnkss...



EDIT:

I managed to get the locators properly but when I start a new game and fire the cannons, no balls coming from my added locator...
Is there anything else to do?
 
i've added it accordingly but it didn't work



EDIT:

i've just noticed that the default cannon have XX, XZ , ZX and ZZ coordinates whereas my added locator did not have it..

is it because of this my cannon locators didn't work?




By the way, is Yo Ho Ho is the only person that still in this forum,can anyone also try to help me?



Thanks..
 
you dont need the xx, xz, zx and zz coordinates.

You´ve change (add) the cannons with TOOL and you change the ship_init.c and start a new game??

can you post a screen from TOOL with the changes?

You must change these lines in Ship_init.c :

refShip.Cannon = CANNON_TYPE_CANNON_LBS8;
refShip.MaxCaliber = 8;
refShip.Weight = Tonnes2CWT(150);
refShip.CannonsQuantity = 12; (example 16)
refShip.rcannon = 4; (example 6)
refShip.lcannon = 4; (example 6)
refShip.fcannon = 2;
refShip.bcannon = 2;
 
Okay,I will write how i do it steps by steps


1. Open tools,load model and goto Edit>Scene > View> 2D View

2. In the 2D view I add the locators manually by clicking new locator and place it at desired location...


<a href="http://img187.imageshack.us/my.php?image=2dviewxn0.png" target="_blank"><img src="http://img187.imageshack.us/img187/2589/2dviewxn0.th.png" border="0" class="linked-image" /></a>

as u can see the red dot is where I put the new locators..




3. Then I go to View > Locator

In the locator editor I only change the name and the group for example _12 and cannonl (example) because the coordinates had automatically written


<a href="http://img187.imageshack.us/my.php?image=locatorer1.png" target="_blank"><img src="http://img187.imageshack.us/img187/8016/locatorer1.th.png" border="0" class="linked-image" /></a>







4.Save the GM and quit Tool





5. In ship_init.c I edit the following



<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->    ///////////////////////////////////////////////////////////////////////////
    /// BlackPearl
    ///////////////////////////////////////////////////////////////////////////
    makeref(refShip,ShipsTypes[SHIP_THEBLACKPEARL]);
    refShip.Name                        = "TheBlackPearl";
    refship.Soundtype                    = "manowar";
    refShip.Class                    = 1;
    refShip.Cannon                      = CANNON_TYPE_CANNON_LBS24;
    refShip.MaxCaliber                  = 24;
    refShip.Weight                                = Tonnes2CWT(4000);
    refShip.Capacity                    = 90000;
    refShip.CannonsQuantity                = 56;
    refShip.rcannon                             = 25; //(by default it is 15 ,so I added 1o locators)
    refShip.lcannon                             = 25;
    refShip.fcannon                             = 3;
    refShip.bcannon                             = 3;<!--c2--></div><!--ec2-->


That's it...
 
you must count the guns behind. left _10 - _40 for example and not _10 - 20 and _30 - _50.
i add cannons on ships with TOOL and there i dont use the 2D view.


click in TOOL the ?
 
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->you must count the guns behind. left _10 - _40 for example and not _10 - 20 and _30 - _50.<!--QuoteEnd--></div><!--QuoteEEnd-->

i don't think i can understand you explainations..

can you elaborate it?


and for your information, i'm adding NEW locators on an existing cannons and locators..
I want it to pop out from an invisible spots,thats why I added the locators manually
 
O.K.

look at your picture. the Pearl has 36 guns, front, left, right, back = _1 to _36.

you add 20 Guns, 10 left and 10 right and starts at the number _37 to _56, this is wrong you must integrate your added Guns.

i mean the left side starts at number _3 and goes to _18, you must start at _3 and go to _28. for the right side the same, you know??
 
ooooo... i see.......

that means I must rewrite my numbers

ok , i will try now..

ty. very much....

EDIT :

if i did that the so the numbers for the front and back cannons must also change,am I right?

I've done what you said but still didn't work


1 more questionss.
Can I edit the numbers so that it will be organized?..For example the original Black Pearl has

_1 cannon front
_20 cannon front

I want to change to

_1 cannonf
_2 cannonf


and edit the rest to my desire...
 
Here is the screenshot

<a href="http://img84.imageshack.us/img84/7074/locator2wf4.png" target="_blank">http://img84.imageshack.us/img84/7074/locator2wf4.png</a>



zoom in to see closer
 
First:
put the sides behind (all left, all right, all front and all back)
i dont know why but sometimes the game engine doesnt work correctly when the cannon locators are in disorder.

in tool is the locator button there you can write and read locators. you can export the locators as a .doc file. it´s easier to change the rows.
to import load a model import your new locator file and save it.

second:
cannonf must be _1 and _54
cannonb must be _55 and _56
 
Done what you said,but still don't work..

I will post the screenshot after i come back from vacation..

So,see you in 2 weeks..
 
Back
Top