RelicNews Forums

Go Back   RelicNews Forums > RDN - Relic Game Mods > Homeworld 2 - Tanis Shipyards
User Name
Password
Register FAQ Members List Arcade Mark Forums Read



Closed Thread
 
Thread Tools
Old 11th Dec 03, 2:38 PM   # 1
Slamoid
Guest
 

Text-based Dockpath Editor -download here-

This editor is by Pipakin, I just wrote the batch file.



Put the .HOD file you wish to edit into the same directory as these 2 things, rename it to newhod.hod and run the .BAT file.

The changes you made will be put into a new file, dockedhod.hod.

Enjoy.


Huge props and kudos to Pipakin! :bow2:
Download link

[edit/ps] You can use the visual point picker from HardEd to get coordinates. Easier than guessing.

Last edited by Slamoid : 11th Dec 03 at 2:41 PM.
 
Old 11th Dec 03, 3:15 PM   # 2
thesamonthemoon
Guest
 

Excellent. DL in progress... No wait, it's done.

Now, to try it out...
 
Old 24th Dec 03, 12:01 AM   # 3
Aces
Guest
 

is there anything else i need to do AFTER making my changes to the dock.dock file?

aces
 
Old 24th Dec 03, 12:13 AM   # 4
Ghost Dragon
Guest
 

Cool Now we can use the doking "door" on the kushan transport.
 
Old 24th Dec 03, 12:17 AM   # 5
Slamoid
Guest
 

Quote:
Originally posted by Aces
is there anything else i need to do AFTER making my changes to the dock.dock file?

aces


Just make sure you use the dockedhod.hod after it does it's thing.

Other than that, only maybe change the ShipHold command =)
 
Old 24th Dec 03, 2:50 AM   # 6
Blue Lion
Guest
 

Um... having trouble using your dockpath editor. I used it to make a simple 2 point docking path into the sp_tanker's hanger, but when I run the game it crashes. I ran -luatrace but the hw2.log file doesn't tell me anything.

What exaclty do all the variables in the shiphold command do? I can't find any info on it on the Wiki. Mine in my Hgn_tanker.ship looks like this:

PHP Code:
 addAbility(NewShipType,"ShipHold",1,150,0,"rallypoint","Fighter",150
 
Old 24th Dec 03, 4:47 AM   # 7
rc mad
Member
 
rc mad's Avatar
 
Join Date: Aug 2002
Location: in a tent, on Earth, Or the uk.

I cannot get it to work either, i belive the fault may be in the hod file. I altered the ion cruiser.ship file to give it the ability to launch and dock fighters, with the standard hod file (no dock paths added) the game loads up fine, it even displays a dock menu for the ship. As soon as i add the dock paths to the hod file the game crashes at the universe loading stage. I'm pretty much stumped, been over the ship file and the dock.dock file with a fine tooth comb and cannot find any errors. Anyone got any ideas? The only thing i can think of is that there is an error during the recompiling of the hod file.
__________________
rc mad is offline Send a message via MSN to rc mad  
Old 24th Dec 03, 9:20 AM   # 8
fluffypuppy
Guest
 

people seem to be confused with this proggy, can we get some documentation? thanks.
 
Old 24th Dec 03, 10:27 AM   # 9
Aces
Guest
 

Quote:
Originally posted by Blue Lion
Um... having trouble using your dockpath editor. I used it to make a simple 2 point docking path into the sp_tanker's hanger, but when I run the game it crashes. I ran -luatrace but the hw2.log file doesn't tell me anything.


same thing happened to me...
 
Old 24th Dec 03, 10:30 AM   # 10
Aces
Guest
 

i cant run it with the dockedhod file... it loads UNIVERSE but then goes back to windows

some steps (clear and understandable by all newbs and pros please) would be awesome and I personally would mother (Father?) your kids..

aces
 
Old 24th Dec 03, 10:59 AM   # 11
Slamoid
Guest
 

Ok... Just to clairify, this is for advanced modders...

Now, the coordinates are the same as HardEd (first post), so you can use HardEd to get the coordinates, then type them into this. I HIGHLY reccomend you open hgn_carrier.hod first to see what it looks like, and that will give you an idea.

Remember, if your game crashes, make sure you're using command switch -luatrace, then take a look at 'hw2\bin\release\hw2.log'. It will help you debug.

All dockpath classes need an exit. It would be tough for a fighter to launch when it only has a dockpath without a launchpath.
 
Old 24th Dec 03, 4:54 PM   # 12
rc mad
Member
 
rc mad's Avatar
 
Join Date: Aug 2002
Location: in a tent, on Earth, Or the uk.

slamoid, the game crashes at the universe loading stage, hw2.log shows NO error. ( i have the -luatrace command in a shortcut (along with -overridebigfile) by default

To test the program i directly copied all the info from the hig bc and put it into the ion cruiser i did (using pips hard ed), I also copied all the relavent info from the hig bc ship file and put it into the ion cruiser ship file, if there was an error with the ship file, hw2.log would have given the ship file and a code line Ident.

That only leaves the dockpoint editor as unknown (unfortunatly at the minute you have not shown a working example of a modded ship), i Tried several attempts at putting the info into the hod file to make sure i was doing it correctly. I even went through the ship files liine by line to check for errors there. As i said in an earlier post, with a modded ship file and modded hod file it will not load, but if i replace the hod file with an unmodded one it loads correctly. Unless i am missing something in the hod file there has got to be an error. Can you show us an example of a ship modded with dockpoints (ingame pics)so we know it does indeed work. Or can pipakin give us some insight into how to get the proggy working.

Slamoid, i hope you don't take this post the wrong way, i'm just trying to help you get the editor working, so please don't be to harsh when you reply
rc mad is offline Send a message via MSN to rc mad  
Old 24th Dec 03, 5:35 PM   # 13
Slamoid
Guest
 

By relavent info, I take it you copied over the 'AddAbility' for ShipHold over? It sounds like the ShipHold thing isn't in there.... Odd.... Perhaps you could post the HOD?

About the example ship, I did all the dockpaths for CtB with this, so I know it works.
 
Old 25th Dec 03, 12:44 AM   # 14
rc mad
Member
 
rc mad's Avatar
 
Join Date: Aug 2002
Location: in a tent, on Earth, Or the uk.

I copied the addability ship hold thing across as well as the dock and launch info, I'm not on my hw2 pc at the moment so I'll post the ship file and the hod file when i go onto it later.

[edit]

Info added to the hod file

Code:
NumberOfPaths=2 path1={ AttachObject=world NumberOfParams=10 Exit=0 Latch=0 Tolerance=0.000000 CanDock=Fighter, Corvette UseAnimation=0 ShareWithPaths=none NumberOfPoints=4 point0={ Position={ x=599.352600 y=132.306564 z=-545.288513 } Angles={ x=0.000000 y=0.000000 z=0.000000 } UseRotation=1 Tolerance=250.000000 DropFocus=0 MaxSpeed=0.000000 CheckRotation=0 Slide=0 PlayerHasControl=0 QueueOrigin=1 ClipPlane=0 ClearReservation=0 } point1={ Position={ x=539.605652 y=7.250000 z=-302.898712 } Angles={ x=0.000000 y=0.000000 z=0.000000 } UseRotation=1 Tolerance=100.000000 DropFocus=0 MaxSpeed=200.000000 CheckRotation=0 Slide=0 PlayerHasControl=0 QueueOrigin=0 ClipPlane=0 ClearReservation=0 } point2={ Position={ x=100.132584 y=4.206806 z=-262.214050 } Angles={ x=0.000000 y=-1.570796 z=0.000000 } UseRotation=1 Tolerance=20.000000 DropFocus=1 MaxSpeed=200.000000 CheckRotation=0 Slide=0 PlayerHasControl=0 QueueOrigin=0 ClipPlane=0 ClearReservation=0 } point3={ Position={ x=-3.900000 y=0.723030 z=-67.150002 } Angles={ x=0.000000 y=0.000000 z=0.000000 } UseRotation=0 Tolerance=15.000000 DropFocus=0 MaxSpeed=200.000000 CheckRotation=0 Slide=0 PlayerHasControl=0 QueueOrigin=0 ClipPlane=0 ClearReservation=0 } } path2={ AttachObject=world NumberOfParams=10 Exit=1 Latch=0 Tolerance=0.000000 CanDock=Fighter, Corvette UseAnimation=0 ShareWithPaths=none NumberOfPoints=4 point0={ Position={ x=32.000000 y=7.250000 z=-176.912064 } Angles={ x=0.000000 y=3.607496 z=0.000000 } UseRotation=1 Tolerance=5.000000 DropFocus=0 MaxSpeed=100.000000 CheckRotation=0 Slide=1 PlayerHasControl=0 QueueOrigin=0 ClipPlane=0 ClearReservation=0 } point1={ Position={ x=-40.000000 y=4.157154 z=-229.229996 } Angles={ x=0.000000 y=3.900773 z=0.000000 } UseRotation=1 Tolerance=25.000000 DropFocus=0 MaxSpeed=200.000000 CheckRotation=0 Slide=0 PlayerHasControl=0 QueueOrigin=0 ClipPlane=0 ClearReservation=0 } point2={ Position={ x=-89.572693 y=4.852412 z=-252.967941 } Angles={ x=0.000000 y=4.712389 z=0.000000 } UseRotation=1 Tolerance=25.000000 DropFocus=0 MaxSpeed=200.000000 CheckRotation=0 Slide=0 PlayerHasControl=0 QueueOrigin=0 ClipPlane=0 ClearReservation=0 } point3={ Position={ x=-405.274994 y=7.250000 z=-248.606003 } Angles={ x=0.000000 y=-1.570796 z=0.000000 } UseRotation=1 Tolerance=50.000000 DropFocus=0 MaxSpeed=200.000000 CheckRotation=0 Slide=0 PlayerHasControl=1 QueueOrigin=0 ClipPlane=0 ClearReservation=0 } }


Relavent parts of ship file

Code:
addAbility(NewShipType,"CanDock",1,0) NewShipType.dockTimeBetweenTwoFormations = 1 NewShipType.dockTimeBeforeStart = 2 NewShipType.dockNrOfShipsInDockFormation = 1 NewShipType.dockFormation = "delta" NewShipType.queueFormation = "dockline" NewShipType.dontDockWithOtherRaceShips = 1 NewShipType.ignoreRaceWhenDocking = 0 addAbility(NewShipType,"CanLaunch") NewShipType.launchTimeBetweenTwoFormations = 1 NewShipType.launchTimeBeforeStart = 2 NewShipType.launchNrOfShipsInDockFormation = 1 NewShipType.launchFormation = "delta" addAbility(NewShipType,"ShipHold",1,0,5,"rallypoint","Fighter, Corvette",25,{ Fighter = "12", },{ Corvette = "75", }) addAbility(NewShipType,"ParadeCommand",1)


hope that info's usefull to you

Last edited by rc mad : 25th Dec 03 at 4:44 AM.
rc mad is offline Send a message via MSN to rc mad  
Old 10th Sep 05, 4:57 PM Forum Rules   # 15
Mikail
Lost in the Web...
 
Mikail's Avatar
 
Join Date: Jun 2003
Location: %HW2_ROOT%

__________________
Download my HW2 mods, maps & tools. link
Mikail is offline  
Old 11th Sep 05, 1:16 PM Forum Rules   # 16
Zatch
Devil's Advocate
 
Zatch's Avatar
 
Join Date: Feb 2004
Location: CA, USA

Please don't bump 20-month old threads.

Anybody who wishes to continue discussing this program may do so in the List of Tools thread.
__________________
~

Last edited by Zatch : 11th Sep 05 at 1:43 PM.
Zatch is offline Send a message via MSN to Zatch  
Closed Thread



Go Back   RelicNews Forums > RDN - Relic Game Mods > Homeworld 2 - Tanis Shipyards
User Name
Password
Register FAQ Members List Arcade Mark Forums Read



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




All times are GMT -7. The time now is 4:48 AM.

Page generated in 0.40164995 seconds (90.58% PHP - 9.42% MySQL) with 9 queries

Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.