Results 1 to 5 of 5

Question about a Custom Fighter's ship File...

  1. #1
    Member Blackw00lf's Avatar
    Join Date
    Oct 2008
    Location
    Somewher over the Rainbow...

    Question about a Custom Fighter's ship File...

    hello,

    I was wondering where in a custom fighter's ship file Do I find the part of the code that deals with Parade data.

    I noticed that when I build the Custom fighter, they always go to the right of the mother ship and towards the Places where Carriers go, and are really spaced out (between Formations) i would like them to go to where the Fighters normally go.

  2. #2
    Scripts/formations open file hgn_mothership_parade there you can add the fighters
    paradeSlot("Hgn_Name",{
    -1290, x
    -400, y
    1557, z
    },{
    0,
    0,
    1,
    },{
    -1,
    0,
    0,
    },0)

    the x,y and z is only for you to know which number is which coordinate

  3. #3
    Member Blackw00lf's Avatar
    Join Date
    Oct 2008
    Location
    Somewher over the Rainbow...
    ok when i edit Scripts/formations/hgn_mothership_parade to add in the New fighter i have made the game crashes at Universe

    here's my HW.Log
    Code:
    Thu Jul 05 11:32:00 2012
     Loaded Archive: 'Homeworld2.big' 
     UTIL -- filepath failure, path doesn't exists 'C:\Games\Sierra\HOMEWO~1\data\locale\english' 
     Loaded Archive: 'english.big' 
     Uing ..profiles\ for profiles folder 
     GAME -- Using player profile grey Wolf 
     Changing from a 32 bit colour depth in winNT (6.1 build 7601), Service Pack 1 
     Using NVIDIA Corporation's 3.3.0 GeForce 8600 GT/PCIe/SSE2 renderer (Suspected driver is nvoglnt.dll 0) 
     Loaded Archive: 'englishSpeech.big' 
     Loaded Archive: 'Music.big' 
     SOUND -- created destination [ fdaudio ], handle [ 4 ] with [ 48 ] channels created 
     SOUND -- created destination [ fda streamer ], handle [ 5 ] with [ 8 ] channels created 
     Build name: The Dust Wars  - AutoBuild3569 - Ordered by smmatte 
     Built by  : mrbuild 
     Data path : C:\Games\Sierra\HOMEWO~1\data 
     Resetting fp control word. 
     CmdLine: -overrideBigFile 
     do not show again has not been hooked up properly for this dialog.  you must give your message a name 
     Starting Level: data:LevelData\Multiplayer\Deathmatch\6P_SARUM.LEVEL 
     LUA 'data:scripts\Formations\hgn_mothership_parade.lua' -- parameter: <expression> expected;
      last token read: `,' at line 7 in string "" 
    loadStaticParadeData: Error loading script (data:scripts\Formations\hgn_mothership_parade.lua)! -- FATAL EXIT -- parademanager/106:! --stack trace-- 0x0054BD5B: GSTracker::operator=                        
    (C:\Games\Sierra\Homeworld2\Bin\Release\Homeworld2.exe) 0x0054BDF5: GSTracker::operator=                        
    (C:\Games\Sierra\Homeworld2\Bin\Release\Homeworld2.exe) 0x002846B5: lua_error                                   
    (C:\Games\Sierra\Homeworld2\Bin\Release\lua.dll) 0x00284749: lua_error                                   
    (C:\Games\Sierra\Homeworld2\Bin\Release\lua.dll) 0x002847EE: lua_error                                   
    (C:\Games\Sierra\Homeworld2\Bin\Release\lua.dll) 0x0028481E: lua_call
    (C:\Games\Sierra\Homeworld2\Bin\Release\lua.dll) 0x0046B9FC: GSLobbySessionDesc::operator=               
    (C:\Games\Sierra\Homeworld2\Bin\Release\Homeworld2.exe)
    This is My Formations File (look for Hgn_SuperFighter
    Code:
    -- LuaDC version 0.9.20
    -- 6/26/2012 6:22:04 PM
    -- LuaDC by Age2uN
    -- on error send source file (compiled lua) and this outputfile to Age2uN@gmx.net
    --
    paradeSlot("Hgn_AssaultCorvette", 
        { -1239, -300, 716, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 0)
    paradeSlot("Hgn_AssaultCorvetteElite", 
        { -1239, -100, 716, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 0)
    paradeSlot("Hgn_PulsarCorvette", 
        { -954, -250, 375, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 0)
    paradeSlot("Hgn_MinelayerCorvette", 
        { -1063, -200, 25, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 0)
    paradeSlot("Kpr_Mover", 
        { -925, -108, -547, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 150)
    paradeSlot("Hgn_HSInhibitor", 
        { -923, -110, -345, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 0)
    paradeSlot("Hgn_DefenseFieldFrigate", 
        { 949, -436, 405, , 
        { 0, 0, 1, , 
        { 1, 0, 0, }, 0)
    paradeSlot("Hgn_AssaultFrigate", 
        { 1334, -636, 1605, , 
        { 0, 0, 1, , 
        { 1, 0, 0, }, 0)
    paradeSlot("Hgn_IonCannonFrigate", 
        { 1112, -536, 1005, , 
        { 0, 0, 1, , 
        { 1, 0, 0, }, 0)
    paradeSlot("Hgn_MarineFrigate", 
        { 1031, -486, 705, , 
        { 0, 0, 1, , 
        { 1, 0, 0, }, 0)
    paradeSlot("Hgn_MarineFrigate_Soban", 
        { 1031, -221, 705, , 
        { 0, 0, 1, , 
        { 1, 0, 0, }, 0)
    paradeSlot("Hgn_SupportFrigate", 
        { 840, -386, 105, , 
        { 0, 0, 1, , 
        { 1, 0, 0, }, 0)
    paradeSlot("Hgn_TorpedoFrigate", 
        { 1224, -586, 1305, , 
        { 0, 0, 1, , 
        { 1, 0, 0, }, 0)
    paradeSlot("Hgn_Scout", 
        { -1290, -400, 1557, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 0)
    paradeSlot("Hgn_Interceptor", 
        { -946, -350, 1284, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 0)
    paradeSlot("Hgn_SuperFighter", 
        { -946, -200, 1284, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 0)
    paradeSlot("Hgn_AttackBomber", 
        { -677, -300, 1025, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 0)
    paradeSlot("Hgn_AttackBomberElite", 
        { -677, -100, 1025, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 0)
    paradeSlot("Hgn_ResourceCollector", 
        { -927, -86, -739, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 150)
    paradeSlot("Hgn_Shipyard", 
        { -1503, 0, -3404, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 1000)
    paradeSlot("Hgn_Shipyard_SPG", 
        { -1503, 0, -3404, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 1000)
    paradeSlot("Hgn_Shipyard_Elohim", 
        { -1503, 0, -3404, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 1000)
    paradeSlot("Hgn_ResourceController", 
        { -927, -86, -939, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 0)
    paradeSlot("Hgn_Probe", 
        { -922, 0, -1236, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 0)
    paradeSlot("Hgn_ECMProbe", 
        { -921, 0, -1486, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 0)
    paradeSlot("Hgn_ProximitySensor", 
        { -922, 0, -1686, , 
        { 0, 0, 1, , 
        { -1, 0, 0, }, 0)
    paradeSlot("Hgn_Dreadnaught", 
        { -1283, -439, 2540, , 
        { 0, 0, 1, , 
        { 1, 0, 0, }, 0)
    paradeSlot("Sp_Tanker", 
        { -742, -781, 2468, , 
        { 0, 0, 1, , 
        { 0, 1, 0, }, 400)
    paradeSlot("Sp_Tanker2", 
        { -1303, -781, 2468, , 
        { 0, 0, 1, , 
        { 0, 1, 0, }, 400)
    paradeSlot("Sp_Tanker4", 
        { -1879, -781, 2468, , 
        { 0, 0, 1, , 
        { 0, 1, 0, }, 400)
    paradeSlot("Sp_Tanker3", 
        { -742, -381, 2468, , 
        { 0, 0, 1, , 
        { 0, 1, 0, }, 400)
    paradeSlot("Sp_Tanker5", 
        { -1303, -381, 2468, , 
        { 0, 0, 1, , 
        { 0, 1, 0, }, 400)
    paradeSlot("Sp_Tanker6", 
        { -1879, -381, 2468, , 
        { 0, 0, 1, , 
        { 0, 1, 0, }, 400)
    paradeSlot("Hgn_Destroyer", 
        { 871, -448, 2406, , 
        { 0, 0, 1, , 
        { 1, 0, 0, }, 500)
    paradeSlot("Hgn_Battlecruiser", 
        { 0, -750, 2500, , 
        { 0, 0, 1, , 
        { 0, 1, 0, }, 750)
    paradeSlot("Hgn_Carrier", 
        { 1809, -858, -1823, , 
        { 0, 0, 1, , 
        { 0, 1, 0, }, 750)
    paradeSlot("Hgn_GunTurret", 
        { -364, 0, 296, , 
        { 0, 0, 1, , 
        { 0, 1, 0, }, 0)
    paradeSlot("Hgn_IonTurret", 
        { -535, 0, 292, , 
        { 0, 0, 1, , 
        { 0, 1, 0, }, 0)
    paradeSlot("misc", 
        { 1700, 600, -650, , 
        { 0, 0, 1, , 
        { 1, 0, 0, }, 1000)

  4. #4
    Member Stargazer's Avatar
    Join Date
    Aug 2009
    Location
    right behind you... BOO!
    You have to close all braces that you open.
    For example:
    Code:
    paradeSlot("Hgn_AssaultCorvette", 
    { -1239, -300, 716, , 
    { 0, 0, 1, , 
    { -1, 0, 0, },
    0)
    should be
    Code:
    paradeSlot("Hgn_AssaultCorvette", 
    { -1239, -300, 716,}, 
    { 0, 0, 1,},
    { -1, 0, 0,},
    0)
    If you haven't deleted all the braces by hand, then I suppose your lua decompilation failed. I recommend to use the files of the Homeworld 2 Clean Data Resource Project (http://www.moddb.com/games/homeworld...ed-data-folder)


    HW2 Ship Editor 1.2.3a
    Your advertisement could be here!

  5. #5
    Member Blackw00lf's Avatar
    Join Date
    Oct 2008
    Location
    Somewher over the Rainbow...
    that was what was decompiled

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •