Page 2 of 5 FirstFirst 12345 LastLast
Results 51 to 100 of 201

[HW2 Weapon-Script Editor v1.4.4]

  1. #51
    ReevesG
    Guest
    awesome. thanks for ur help.

  2. #52
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    You're welcome, as always.
    ~

  3. #53
    there seems to be some funny behavior between beam lifetime, charge time and fire time, if I set a beam to charge for 7.5 seconds (with a 7.5 second chage effect) and then to last for 7.5 seconds(with a 7.5second beam effect) and fire every 60 seconds , the charge works fine, the beam fires for about 2 seconds then waits until it fires again. if I lower the charge time it will fire the beam for the correct time, I dunno if its a relic issue or what
    }  UAnÄ E¯ò5ëQÎÑ̦KœàŠàÌD9É\·fÒªêÌãë}߉aIûš »f ŒC{ŽXِdÃWoæ£ÑÆ>‰"‚n›˜q|]t¢'ÿïà'È‚táÅïÍ#wŸ›b§ëkÄrk\L(#TÙ† ™'#)A9C«
    â‰Ö8/—ñûÇ}؝N:/öÿ55cRÖßü!=å˜ÆÇE된𩛌}D«÷î!¸äÒs>åIG’Ì?%Çädªí޹šjñª>Ìd~x»\³öG÷±ÙSûtûPK   ŽpÎ2:Gwå —1984
    http://warlords.swrebellion.com/

  4. #54
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    That's rather odd, is the beam still doing damage even though it's not visible? Perhaps it as something to do with the Max Effects Spawned? I haven't tinkered with it much, so I'm really just stabbing in the dark...

  5. #55
    ReevesG
    Guest
    what does the Max Effects Spawned option actually do?

  6. #56
    for weapons that have looping effects it caps the number of FX particles that are generated, I think it may also cap the number of spawned particles in a trail or a smoke FX

  7. #57
    Avonire
    Guest
    I keep getting a run-time error 62 every time i try to open the weapons for some reason it says Input past end of file. Any help?

  8. #58
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Have you decompiled your *.wepn files?

  9. #59
    Creator of PDS&NGCS Tel'Quessir's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    there seems to be some funny behavior between beam lifetime, charge time and fire time, if I set a beam to charge for 7.5 seconds (with a 7.5 second chage effect) and then to last for 7.5 seconds(with a 7.5second beam effect) and fire every 60 seconds , the charge works fine, the beam fires for about 2 seconds then waits until it fires again. if I lower the charge time it will fire the beam for the correct time, I dunno if its a relic issue or what
    Noticed that the "charge" is actually "firing" the weapon.

    So an ion cannon with a 10 second firing time and a 3 second charge-to-fire will actually do damage for 7 seconds before shutting down to recharge.

    Pretty fun making a "barrage laser" that has a long chargeup time but very fast cycling rate.

  10. #60
    Banned Viperslayer's Avatar
    Join Date
    Nov 2003
    Location
    Hilladelphia Ha, H9H49, HSA, Hiigara
    I want his tools does anyone else already have them and could please host them?

  11. #61
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Update - 1.3.5 released, see the first post for details (I updated the links so they should work now.)

  12. #62
    Lost in the code... Mikali's Avatar
    Join Date
    Jun 2003
    Location
    %HW2_ROOT%
    Any interest in creating a pretty-printer for LUA since you've already written a parser?
    Download my HW2 mods, maps & tools. link
    Username|SF on Gamespy/Xfire/Hamachi/Gameranger

  13. #63
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Not sure what you mean by that. Just something to read the files and rearrange everything into a nicer format?

    Edit - Ah, I used :google: to look up "pretty-printer" and I see what you mean. Would you want all of the lines commented with explanations or just reorganized? Also, I assume that you want _all_ *.LUA files generated by HW2 to be cleaned up, since you mentioned something along those lines earlier...

    Another thing, if you're willing to explain how to "fix" all of the decompiled *.level files in a generic form (e.g. "all strings need to be quoted," or "there's always a comma missing in this function," etc...) then I'll include some "fixing" functionality in the pretty-printer. I'll need a list of the incorrectly decompiled *.lua files so I can look into it, but it will probably take ages for me to figure out what's wrong with every single one of them.

  14. #64
    Lost in the code... Mikali's Avatar
    Join Date
    Jun 2003
    Location
    %HW2_ROOT%
    Ok, here's some things off the top of my head:

    • indentation using tabs, not spaces
    • tables have opening and closing brackets on a new line, like this, unless used as an argument in a function:
      Code:
      table1 =
      {
      	"stuff",
      	table2 =
      	{
      		"more stuff"
      	},
      }
    • table entries are always followed by a comma
    • table entries always appear on a new line (basically everything should appear on a new line)
    • To be nitpicky, I prefer it if arithmetic is seperated by spaces, but brackets aren't, e.g.:
      Code:
      (3 * 2 + (42 - 7 / 8))	<- ok
      (3*2+(42-7/8))		<- not ok
       ( 3 * 2 + ( 42 - 7 / 8 ) )	<- not ok
      The same for functions, e.g.
      Code:
      TheFunction(arg)	<- ok
      TheFunction ( arg )	<- not ok
      Other people might disagree...
    • concatenation symbol (e.g. "..") always preceded and followed by a space. e.g.
      Code:
      "text" .. "text"	<- ok
      "text".."text"	<- not ok
    • remove trailing spaces. Again, other people might not like this.


    If you could make the pretty-printer a module for SciTe, then a lot of other people would be able to use it.
    Last edited by Mikali; 2nd Jul 05 at 2:34 AM.

  15. #65
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    I'll see what I can do (might take a while since I'll be working mostly on Ship-Script Editor whilst I'm on "vacation.")

  16. #66
    Lost in the code... Mikali's Avatar
    Join Date
    Jun 2003
    Location
    %HW2_ROOT%
    I may have something that's already part way there if you want to hold on a second...

  17. #67
    Lost in the code... Mikali's Avatar
    Join Date
    Jun 2003
    Location
    %HW2_ROOT%
    Here you go:

    Code:
    function ReformatTables()
       local indent = "  "
       local last = editor.Length
       local txt = editor:textrange(0, last)
       local i, lvl = 1, 0
       local selbeg, selend, fix
       local function tab() return string.rep(indent, lvl) end
       local function snip(t) fix = fix..t end
       editor:BeginUndoAction()
       while true do
         if lvl == 0 then
           local x1, x2, syn = string.find(txt, "([_%a][_%w]*)%s*=%s*{", i)
           if x1 == nil then break end
           selbeg = x1 - 1; fix = ""
           i = x2 + 1; snip(tab()..syn.." =\n"..tab().."{\n")
           lvl = lvl + 1;
         else
           local x1, x2, syn = string.find(txt, "([_%a][_%w]*)%s*=%s*{", i)
           local y1, y2, itm = string.find(txt, [[("[^"]*",?)]], i)
           local z1, z2, del = string.find(txt, "(},?%s[\r\n]+)", i)
           local tok = math.min(x1 or last, y1 or last, z1 or last)
           if tok == last then
             print("table unbalanced"); return
           elseif tok == x1 then
             i = x2 + 1; snip(tab()..syn.." =\n"..tab().."{\n")
             lvl = lvl + 1
           elseif tok == y1 then
             i = y2 + 1; snip(tab()..itm.."\n")
           else-- tok == z1 then
             lvl = lvl - 1
             i = z2 + 1; snip(tab()..del)
             if lvl == 0 then
               selend = i - 1
               editor.TargetStart = selbeg
               editor.TargetEnd = selend
               editor:ReplaceTarget(fix)
               i = i + (string.len(fix) - (selend - selbeg))
               last = editor.Length
               txt = editor:textrange(0, last)
             end
           end--if tok
         end--if lvl
       end--while
       editor:EndUndoAction()
    end
    I got this off the SciTe mailing list. I'm not sure how it works. Also, Kein-Hong Man the author said that it ignores comments and doesn't parse "[[" and "]]" when they're used in place of regular double-quotes.

  18. #68
    sanityflare
    Guest
    WOW! just been fooling around with this great tool. Damm this makes weapon scripting so dammed easy!!!

    Order a case of beer for Zatch

  19. #69
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Too bad I can't drink it . But root-beer donations are gladly accepted!

    Oh and by the way, I have net access here, thanks to a neighboor's unprotected WiFi network. Woohoo.

  20. #70
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Update - Version 1.4.0 has been released! See the first post for a link and the update's details.

  21. #71
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    And my last of the day, see the first post for details.

  22. #72
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Update - Revision 1.4.1 has been released. This addresses a few issues, but the biggest one is a huge error in the program's interpretation of the setAccuracy lines . I put a 0 where there should've been a 1 so you might've noticed a lack of hitting with weapons created using HW2WSED (this only applied to lines that you didn't manually modify within the program, it automatically assigned an accuracy of 0 to armor families that weren't present, but the game interprets missing families as 1s not 0s.) I also made the interface a little nicer and whatnot, the usual poop. Try it out!

  23. #73
    Member Kou Uraki's Avatar
    Join Date
    May 2005
    Location
    MSC-07 Assault Carrier Albion
    Is it possible to modify the dreadnaught's phased cannon array so that it will shoot multiple targets instead of 1 ship as a time? that would be awsm

  24. #74
    Mr. Pete
    Guest
    its jsut a fancy beam weapon so methinks no. not without making individual beams and seeting them as gimbled guns.

  25. #75
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    One bullet/beam, one target

  26. #76
    Strategia
    Guest
    Code:
    Component "comdlg32.ocx" or one of its dependencies is not currently registered: a file is missing or invalid


    What am I doing wrong?

  27. #77
    Banned Jaen-ni-rin's Avatar
    Join Date
    Mar 2004
    Location
    Poland
    It's a VB runtime thing, eh ?
    You need to register the thing.
    Move it to system32 (system in old windows), enter regsvr32 comdlg32.ocx in run window and confirm.

    :/ Do you need an installer ZaTcH ?

  28. #78
    Strategia
    Guest
    I did install the VB runtime package linked in the first post, but if you mean "put the actual editor in the system folder" I'll try that.

  29. #79
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    No need to put the editor in the system folder, just type "regsvr32 comdlg32.ocx" in the command prompt, as Jaen said.

    @Jaen-ni-rin: I'm planning on putting one together but not until I polish off a few more details in the program (it still seems to have trouble with SphereBurst weapons.)

  30. #80
    Strategia
    Guest
    No luck. :-( It still gives me that same error message. I use Win98SE, just so you know. (And yes I know XP is better, and I'd like to use it, but for some reason XP won't install on my computer >.< ) I've tried everything I can think of. I don't understand why I can't use the program.

  31. #81
    Banned Jaen-ni-rin's Avatar
    Join Date
    Mar 2004
    Location
    Poland
    Umm... try moving this comdlg32.ocx to system folder then. Not the editor, but control. Then register it as mentioned above.
    I can't work out what else could be wrong.
    And if that can't help I'll make an install for you, regardless what ZaTcH wants to add, yet. I won't diclose it publicly, so I hope he won't mind.
    And if that won't work, then it'l be one big WTF ?!??!

  32. #82
    Strategia
    Guest
    I have no "comdlg32.ocx" file on my computer, nor does there appear to be one on the HW2 disc. I'd much appreciate an installer, I'll see if that'll work. Otherwise, like you said one big "WTF?".


    (Or not. My PC appears to be slowly decaying, which, amongst other things, has caused XP to be unable to install on my PC, and two games (Microsoft games) won't work (though the prequel to one of them does). Then there's the Firefox issue, which resigned me to using IE, and the weird goings-on when I tried to patch Civ III, seemingly random crashes, the system sometimes choking on IE when I'm not doing anything at all, the list goes on and on and on and on..... Man, I'm glad I'll have a new PC in a few weeks.)

  33. #83
    Banned Viperslayer's Avatar
    Join Date
    Nov 2003
    Location
    Hilladelphia Ha, H9H49, HSA, Hiigara
    I constantly get this error:

    Run-time error '13':
    Type Mismatch

  34. Child's Play Donor General Discussions Senior Member Homeworld Senior Member The Workshop Senior Member  #84
    Ignorans, te absolvo Homdax's Avatar
    Join Date
    Sep 2003
    Location
    <!--- SWEDEN>
    Zatch, could You upload a ZIP containing the EXE and file dependencies (dll/ocx) somwhere for me to download so I can make a proper MSI installation file of it with proper ocx/dll registration. Moe should be able to vouch for me...

    You could also reg at hwaccess and up it there...
    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.

  35. #85
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Using Microsoft's crappy package & deployment wizard, I've made a setup file: hw2wsedsetup.zip (1.6MB)

    If you, HomeBoy or Jaen-ni-rin, still want to make your own, the two most important DLLs are comdlg32.ocx and scrrun.dll, which I've uploaded in this zip file (122KB).

    @Viperslayer: What were you doing when the error occured?

  36. Child's Play Donor General Discussions Senior Member Homeworld Senior Member The Workshop Senior Member  #86
    Ignorans, te absolvo Homdax's Avatar
    Join Date
    Sep 2003
    Location
    <!--- SWEDEN>
    Zatch, evaluate this:


  37. #87
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    That's excellent, just one change I'd like to request: Instead of adding the start-menu folder "Homeworld 2 Weapon Script Editor 1.4" just make it "Homeworld 2 Weapon Script Editor," that way future versions will just overwrite the folder instead of creating new ones. Many thanks, I'll put a link on the first post .

  38. Child's Play Donor General Discussions Senior Member Homeworld Senior Member The Workshop Senior Member  #88
    Ignorans, te absolvo Homdax's Avatar
    Join Date
    Sep 2003
    Location
    <!--- SWEDEN>
    Will do, updating...

    Stuff that can be done:
    Add a Information text to be displayed when installing,
    adding a license condition to accept or reject,
    prompt on previous version to be uninstalled before an assumed 1.5 gets installed,
    Link to Readme in StartMenu, link to Site in Start Menu.

    You noticed in Add/Remove program there is a support URL to this thread?

    Type up a readme (compile it from texts in this thread?) and it will be implemented.

    Release updated on server. Re-download.

  39. #89
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    Cool, thanks again. I'll make a ReadMe file after classes & the obligatory CostCo visit today.

    Info-text while installing: no real need, The program is pretty self-explanatory and the details will go in the ReadMe anyways.
    License condition: I'll write a short EULA along with the ReadMe.
    Prompt to uninstall previous version: Not necessary at the moment (I'm not planning on adding/removing any files from the package any time soon.)
    Link to ReadMe in the StartMenu: Yes, once the ReadMe is done.
    Link to Site in the StartMenu: Yes, once the ReadMe is done.

    Alright, off to class I go!

  40. #90
    Banned Viperslayer's Avatar
    Join Date
    Nov 2003
    Location
    Hilladelphia Ha, H9H49, HSA, Hiigara
    I was trying to open an .weap file of course! :P

  41. #91
    palstek
    Guest
    hi, i downloaded the editor v1.4.1 and as i wanted to open a *.wepn file to edit it, nothing happens... can you help me??

    btw: i already have installed the vb6 runtimes.


    palstek

  42. #92
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    The "Open" dialog box doesn't appear? Try clicking Settings->Manage Directories->Decompiled Data and enter your Homeworld 2 Data directory, then close the program and reopen it (I fixed it so you don't have to, but the fix is in the next version which I can't put online until tomorrow afternoon.)

  43. #93
    palstek
    Guest
    i have entered the correct homeworld 2 directory, when i click on "file" and then on "open" nothing happens either. i have installed the 1.1 patch for homeworld 2, maybe this causes this problem?

  44. #94
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    The 1.1 patch shouldn't cause any problems, I've always used my programs with HW2 v1.1. I'll work on the problem some more today.

  45. #95
    bokboren
    Guest
    Interestingly enough I have the same problem. Can't open any file (doesn't bring up a dialogue box to find/select files).

    Doesn't seem to make any difference using different directories as per your suggestion.

  46. #96
    Hoodad
    Guest
    My problems lie elsewhere. The editor will open up files and seems to edit them properly. However, when I try to run the game with the edited files, the game does the typical crash on startup assosiated with screwed up scripting, etc. When I remove the override, it works fine, of course - however, the damned odd thing about it, is that I have COMPLETELY repleaced every file in the data folder (except the bigs) and even after all of this is done and no aparent trace of the file ever being tampered with is left, the game still won't start up with the override. The only way I can get it to work again is if I reinstall. I don't really know what to do to make it work.

  47. #97
    Devil's Advocate Zatch's Avatar
    Join Date
    Feb 2004
    Location
    CA, USA
    I've crawled through the source code again and fixed a couple things that might've caused some file-handling issues (or they might've done nothing.) I'll get the new version on the server tomorrow (v1.4.2)

  48. #98
    GoliathDeathWis
    Guest

    GoliathDeathWish

    Hello

    umm i having a problem, how do u open the .wepon files???

    im confused 2 the max!!

    HELP!!1

    Mattie

  49. Child's Play Donor Technical Help Senior Member General Discussions Senior Member Boardwars Senior Member  #99
    Gimme your lunch Moeney! Moe's Avatar
    Join Date
    Oct 2003
    Location
    #homeworld
    Use notepad. Or any other editor for that matter.

  50. #100
    GoliathDeathWis
    Guest

    GoliathDeathWish

    i meant in Weapon-script Editor v.1.4

    i cant open HW2 files but i can open other moded .wepn files..

    its really weird hope some1 can help me fast!!!
    Last edited by GoliathDeathWis; 15th Mar 06 at 9:56 PM.

Page 2 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
  •