Page 3 of 5 FirstFirst 12345 LastLast
Results 101 to 150 of 201

[HW2 Weapon-Script Editor v1.4.4]

  1. #101
    davy
    Guest

    Help getting modified weapon files to work in the game

    I am able to modify the wepn files with the editor just fine. What do I do to make the game use the modified file? Does it involve compiling the wepn file back to its original form, and putting it back in the the homeworld2.big file? That would be my first guess, but I have no Idea how to do it. (Sorry if this question has been asked before, I am new to modding)

    davy

  2. #102
    Goliath: if the weapon editor fails (which it does a lot), just use notepad as moe suggests.

    As for getting changes to work: place files in appropriate folders (I assume you know where they belong since you modded them) and run the game using a shortcut that has -overridebigfile added.


    Daton

  3. #103
    davy
    Guest
    Daton
    I tried adding -overridebigfile to the shortcut, an error came up saying it could not find the file. This is what I had in the shortcut:

    "C:\Program Files\Sierra\Homeworld 2\Bin\Release\Homeworld2.exe"-overridebigfile

    Do you know what I am doing wrong?

    davy

  4. #104
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Try adding a space between " and -, so it looks like ...\Release\Homeworld2.exe" -overrideBigFile

    Oh and I think Goliath's problem was caused by not decompiling the scripts. I really need to work out the rest of those bugs...
    ~

  5. #105
    space after the end quotation mark.

    its supposed to look like this:
    "C:\Program Files\Sierra\Homeworld 2\Bin\Release\Homeworld2.exe" -overridebigfile


    Daton

  6. #106
    davy
    Guest
    Hey that worked, thanks guys.

    But of course there is another problem. I start the game with overridebigfile shortcut, it goes to a black screen, then returns to my desktop. I think this is because all the files in the homeworld2.big that I extracted are decompiled so I can edit them. Is there a way to compile them back after I edit them, or does the game run on the decompiled files?

    davy

  7. #107
    It runs on decompiled files. But you need to delete all of the folders you dont need (especially UI) because some files dont decompile properly and cause problems.


    Daton

  8. #108
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    I think the level files also have problems, so delete those unless you want to fix them manually (or just replace them with working copies from the popular Data.zip.)

    With regards to the *.big versus decompiled files issue: Any file that the game cannot find in decompiled format will be retrieved from the *.big file, so you only need to keep the files you're modifying in decompiled form (no need to keep the rest unless you intend to change every file.)

  9. #109
    davy
    Guest
    ah, I got everything working now.
    Thanks for the help.

    davy

  10. #110
    Pax_Empyrean
    Guest
    I know this is borderline thread Necromancy, but it's sticky and my problem is directly related to the file in question. Specifically, I can't delete Hw2wsed.exe from my computer. It says it's in use by another person or program, but I have no idea what that may be. I've got an icon sitting on the desktop and so far have found no way to get rid of it. I checked msconfig and didn't notice anything that might be using it, and I'm stuck. I just want the $#%! thing off my desktop. Any suggestions?

    EDIT: Nevermind, I just booted my computer into DOS and blasted it from there. Didn't give Windows a chance to run whatever it was that was keeping me from getting rid of it.

  11. #111
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    That means the program semi-crashed (the window process died but there was still something running in the background.) Would've been nice to know what you were doing beforehand so I could fix the problem.

  12. #112
    Pax_Empyrean
    Guest
    I'm not sure exactly what I was doing, now. Downloading various tools and whatnot. I think the size of the file was something like 650 bytes when it should have been around 148kb, so I might have just had a bad download or something.

    Ok, I've got Hw2wsed installed and it starts, but I've got the same problem that ReevesG was having, where the editor tells me that my Data\Scripts\Weaponfire directory does not exist. It doesn't give me an option to direct it elsewhere, and I know the directory exists where it ought to. I thought I had decompiled everything with the SpookyRat tool, but maybe not. I had used the "save all files in archive" button, does that not decompile them in the process?

  13. #113
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    It should only say the directory doesn't exist if the directory doesn't exist, other errors (such as improperly decompiled scripts) should give different errors, but I'll have to check the code again and I'm afraid I don't have time right at this moment. I'll look into it over the next couple days.

    Also I'll implement some better error-checking for the directory testing. It might be bombing because of a missing backslash or something silly that should be handled by the program.

  14. #114
    sr4delta
    Guest
    ok ive redownloaded it 3 times and it always gets
    run-time error 9
    subscript out of range
    then it closes itself (i dont think its crashing because when i move the error window all the values appear to have loaded

    im going to undump the big files again

    edit:
    ok i tried that and it didnt do anything, i think its because of the way my DC moves lines around and doesnt like new lines
    Last edited by sr4delta; 13th Apr 07 at 9:56 PM.

  15. #115
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Have you decompiled the weapon files?

    Note that isn't the same thing as extracting. When you extract the game scripts they are still compiled (encoded) so they aren't easily readable by humans or the program.

    Also please post the contents of the weapon file you are editing if it only crashes on one file. If it crashes on everything, you've probably forgotten to decompile.

  16. #116
    WereAngel
    Guest

    Vista compatible?

    Hi! I'm just wondering whether if it is possible to use this editor on Vista? I've been trying to install the required runtime files, downloaded from the link in the first post, but when I try to start the editor it always says "Component 'COMDLG32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid". I know that I can just directly edit the decompiled files in notepad, but it would be really nice to be able to use this editor.

  17. #117
    Google how to register that file, it's just a command line action I think.

    -Stefan-

  18. #118
    WereAngel
    Guest
    Figured it out (will try to read the whole thread the next time). But now I'm stuck with another problem.

    Every time I attempt to open a .wepn file i get "Run-time error '13': Type mismatch" and the program quits. Any clue of what's causing the problem? I googled it and found out that MS apparently already has fixed the problem in a service pack for XP... but I haven't yet found a fix that works for Vista.

  19. #119
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Are you sure the weapon files are decompiled?

  20. #120
    seath
    Guest
    How do I upload a weapon file to the program?

    I have tried to open the files wiht the program and that didn't work.

  21. #121
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Make sure they're decompiled.

  22. #122
    seath
    Guest
    Theya re decompiled.
    How do you load one as a template?

  23. #123
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Does File --> Open not work?

    If not, does the program crash when you try to open a file, does the open dialog not appear, or does it appear, you select a *.wepn file, and none of the values are loaded?

  24. #124
    seath
    Guest
    None of the values are loaded, name isn't loaded... I have no idea why not, Im new to this stuff, got HW 2 3 days ago

    It open up a "Blank" template I guess you could say

  25. #125
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    That's strange. Would you mind posting the contents of one of the *.wepn files you're trying to open?

  26. #126
    seath
    Guest
    Well, I tried this one

    Lua@  æ[¡°¹²AH @X:\Homeworld2\Data\Weapon\Hgn_IonCannonTurret\Hgn_IonCannonTurret.wepn  úÿÿÿ  % . > F K ýÿÿ  StartWeaponConfig  NewWeaponType  AnimatedTurret InstantHit  IonBeam  Normal  AddWeaponResult  Hit
    DamageHealth  Target   setPenetration  PlanetKillerArmour setAccuracy  Fighter Corvette munition
    setAngles  setMiscValues  addAnimTurretSound 7 Data:Sound/SFX/ETG/SPECIAL/SPECIAL_ABILITIES_TURRET_ON  š™™™™™¹?{®Gáz´? à? P L ‡ Ç  G ÆÿÿÆÛ€ÆÿÿÆ €F €ÆÿÿÆ €Æÿÿ €Æ €ÆÿÿÆÿÿ €ÆÿÿÆ €Æ € G  €ÆÿÿÆù € Œ L Ç  G Æ| €Æ| €‡  Ì L F € €Q  ÆÿÿV  L L  €Q ‡  V Q Ç H V Q   V  L L Æ €ÆÒÿÆ, €ÆþÿÆ € Œ L Æÿÿˆ  Ì L  

    And then this one

    -- Pretty-Printed using HW2 Pretty-Printer 1.03 by Mikail.
    -- LuaDC version 0.9.19
    -- 5/23/2004 7:33:02 PM
    -- LuaDC by Age2uN
    -- on error send source file (compiled lua) and this outputfile to Age2uN@gmx.net
    --
    StartWeaponConfig(NewWeaponType, "AnimatedTurret", "InstantHit", "IonBeam", "Normal", 0, 6000, 0, 4, 2, 0, 20, 0, 1, 12, 0, 0, 1, 0, 20, 20, 0.1, "Normal", 1, 0, 1000)
    AddWeaponResult(NewWeaponType, "Hit", "DamageHealth", "Target", 500, 500, "")
    setPenetration(NewWeaponType, 30, 1, {PlanetKillerArmour = 0,}, {Unarmoured = 0.02,}, {LightArmour = 0.1,}, {ResArmour = 0.4,})
    setAccuracy(NewWeaponType, 1, {Fighter = 0.04,}, {Corvette = 0.04,}, {munition = 0.1,})
    setAngles(NewWeaponType, 20, -180, 180, -4, 60)
    setMiscValues(NewWeaponType, 0, 0.5)
    addAnimTurretSound(NewWeaponType, "Data:Sound/SFX/ETG/SPECIAL/SPECIAL_ABILITIES_TURRET_ON")

    P.S. - I am entirely new to modding, so I may be trying to open the templates the wrong way.

  27. #127
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    The first one isn't decompiled. As for the second one, try a file that has been decompiled but not pretty-printed. The program is designed to handle stuff straight out of LuaDC at the moment (never had much reason to make it more robust since that was the primary means of decompiling files and pretty-printing is only useful if you intend to manually dig through the file, something my program was meant to help you avoid.)

  28. #128
    Piwat-Anton
    Guest
    Well I have been using this program successfully for the past 2-3 days works well and even made my own "Higgarian-Juggernauts" mod where the hiigs wtfpwn everything but anyways I open up the program and the weapon impact results do not load up and its not just with one file its with all of them =(

    What can I do to fix it?

    /emote looks at sig for link to pic =D

  29. #129
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Do all of the other variables load fine? Post one of your *.wepn files please and we'll figure this out.

  30. #130
    Piwat-Anton
    Guest
    hgn_bomblauncher

    PHP Code:
    -- Pretty-Printed using HW2 Pretty-Printer 1.03 by Mikail.                        
    -- 
    LuaDC version 0.9.19
    -- 5/23/2004 7:33:01 PM
    -- LuaDC by Age2uN
    -- on error send source file (compiled lua) and this outputfile to Age2uN@gmx.net
    --
    StartWeaponConfig(NewWeaponType"Gimble""Bullet""Plasma_Bomb""Normal Only"1200180000001102.10000260400.1"Normal"000)
    AddWeaponResult(NewWeaponType"Hit""DamageHealth""Target"135135"")
    setPenetration(NewWeaponType51, {ResArmour 0.2,}, {PlanetKillerArmour 0,}, {SubSystemArmour 2.5,}, {TurretArmour 0.45,})
    setAccuracy(NewWeaponType1, {Fighter 0.06,}, {Corvette 0.12,}, {munition 0.1,}, {Frigate 0.8damage 1,}, {SmallCapitalShip 0.6damage 1,}, {BigCapitalShip 0.6damage 1,}, {ResourceLarge 0.6damage 1,})
    setAngles(NewWeaponType100000)
    setMiscValues(NewWeaponType00
    Yes, everything else loads fine but the penetration values have been deleted. When I launch the game it load fine as well but the ships have 0 DPS >.>

    here is a pic of what it looks like :
    htt p://img512.imageshack.us/img512/4112/84892903es5.png
    Last edited by Piwat-Anton; 7th Feb 08 at 8:36 PM.

  31. #131
    blarg
    Guest
    Hello, I am having a problem when I try to use this program.
    when I open it I can get the errors when trying to open a file saying that the "C:\Program Files\Sierra\Homeworld 2\Data\scripts\Weaponfire" folder could not be found (fixed it) but now that I do not get any errors any more, it does not do anything when I click open. no error, no dialog box, nothing. program does not freeze up, just acts as if I did not do anything.
    I read the other pages and saw that some people had this problem a while ago, but I did not really see a fix...
    how do I fix it?
    Last edited by blarg; 7th Feb 08 at 7:33 PM.

  32. #132
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    @blarg: You need comdlg32.ocx present in your ..\Windows\System32 directory.

    @Piwat-Anton: Try without using pretty-printed files.

  33. #133
    Piwat-Anton
    Guest
    yay zatch its workededed!

  34. #134
    blarg
    Guest
    I just tried registering that file, and it turns out I already have it in there, after doing that though it still does not have the open dialog...

    do you think I need a new version of it or something?
    Last edited by blarg; 9th Feb 08 at 11:11 AM.

  35. #135
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Try running this debug version: left-click link.

    It'll probably have the same problem but it will print a debug.txt file which should tell me which procedure the program is failing in. After running the program and clicking Open, close the program and paste the contents of debug.txt here.

  36. Child's Play Donor General Discussions Senior Member Homeworld Senior Member The Workshop Senior Member  #136
    Ignorans, te absolvo Homdax's Avatar
    Join Date
    Sep 2003
    Location
    <!--- SWEDEN>
    Zatch, mind if I try to make a proper Setup file of this? It would get rid of register *.ocx issue
    HWSHOTS | JST-ONLINE | HOMEWORLD ARCHIVES | CROSSFIRE
    TEH ALL POWAFUL "PLEASE MAKE HOMEWORLD 3" PETITION
    NEWS! "hwaccess.net" and related sites have a new home at
    www.homeworldaccess.net. Still WIP.

  37. #137
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    You are welcome to do so. I'm actually gonna create my own Open Dialog for a future version just to avoid this issue.

    If you make a setup file, please post a link to it or PM me, I'll download and attach it to the first post with credit.

  38. #138
    blarg
    Guest
    Program loaded.
    Open routine.
    "C:\Program Files\Sierra\Homeworld 2\Data\Scripts\Weaponfire" exists.
    "C:\Program Files\Sierra\Homeworld 2\Data\Scripts\familylist.lua" exists.
    Adding WF scripts.
    Finished adding WF scripts.
    Adding families.
    that is all I get, but I am going to plug in an external monitor now and see if it is appearing off screen somewhere or something...


    Edit: just checked the other monitor, it is not there

  39. #139
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Is your familylist.lua pretty-printed? If so, get a version that isn't. The procedure is failing while loading data from the familylist.lua so that must be where the problem lies.
    Last edited by Zatch; 10th Feb 08 at 1:04 PM.

  40. #140
    blarg
    Guest
    I do not think it is, I am using unf big to get all the data out of the .big files and have not done anything else with them.

  41. #141
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Paste the contents of your familylist.lua here please (put it in spoiler tags, it's a long list.)

  42. #142
    blarg
    Guest

    Spoiler


  43. #143
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    You need to decompile your familylist.lua.

  44. #144
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA


    Version 1.4.4 has been released.

    This version no longer requires comdlg32.ocx. Because of this, the Open and Save dialogs are different (they are simpler and don't do as much.) See the first post for the attached program. Please report any errors you encounter.

  45. Child's Play Donor General Discussions Senior Member Homeworld Senior Member The Workshop Senior Member  #145
    Ignorans, te absolvo Homdax's Avatar
    Join Date
    Sep 2003
    Location
    <!--- SWEDEN>
    If you no longer need VB, maybe you should edit away that from you 1:st post.

  46. #146
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    I'll leave the link in case some of the other runtime files are still necessary, although I'll mention that users should try the program first, and only download the runtimes if an error occurs.

  47. #147
    Sonic
    Guest
    Hi zatch ive downloaded the program and it just says that it cant find something in weaponfire
    I read that other people have had the same problem and i have tried different things and the file definetely exists and my familylist file is decompiled
    Last edited by Sonic; 24th Feb 08 at 9:18 AM.

  48. #148
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Did you point the program to your decompiled data directory? Also, does the subfolder ..\scripts\weaponfire exist and contain subfolders?

  49. #149
    Sonic
    Guest
    I found out
    the program is searching for
    C:\program files\sierra\scripts\weaponfire
    It thinks that scripts is in sierra folder

    now i copied the scripts file and it said runtime error 76 or something like that i think.
    Now it is going through the homeworld 2 folder but says its looking for a scripts folder in the scripts folder tried moving it again and now just saying runtime error 76 path not found
    Last edited by Sonic; 25th Feb 08 at 12:37 PM.

  50. #150
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    You have to point it to your Data folder, not Sierra. Settings --> Manage Directories --> Decompiled Data --> Enter your data directory (e.g. C:\Program Files\Sierra\Homeworld 2\Data)

Page 3 of 5 FirstFirst 12345 LastLast

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
  •