Search results

  1. B

    Unit type of training unit???

    lol I looked at the date and said "January 15th? That was only 4 days ago!" My bad, I didn't mean to bring this back from the brink of nonexistence.
  2. B

    Unit type of training unit???

    Having googled this issue and come upon this thread, I decided to answer. There is in fact a native called GetTrainedUnitType() which does exactly what you're looking for. It returns the unit type in integer form. I know the native says "TrainedUnit" but it works for units that are in the...
  3. B

    System The Shortest Save/Load Code Ever

    You don't sound like you know how to use KODE. KODE is not a hero save/load system. Its an integer/string/boolean save load system. You pick and choose what you want and how you want to save your data. So say for a hero you'd want the inventory, the agi/int/str learned abilities, xp, ect...
  4. B

    World Edit Crashes

    Crashes? How so? Like the window just dissapears with no error message? I used to have that problem. Then I upgraded to vista, haven't had the problem since.
  5. B

    World editor convertor

    Newgen runs on grimorie. Grimorie is strictly windows as far as I know. In truth, all WEU is, is an mpq injection. I believe there are mac tools to open mpq files. So in truth you could do a rather messy patch of your own. Unfortunately it would be permanent.
  6. B

    System The Shortest Save/Load Code Ever

    Quite simply, I don't know enough about KODE to optimize it. On the bright side of things, I found the real reason for the op-limit. I was multiplying something during saving that I wasn't during loading. Code wise, I doubt it'll ever get smaller. However it will get bigger. I'll try to...
  7. B

    System The Shortest Save/Load Code Ever

    Lol, you really need to update your contact details. I've tried every method, and I finally found one that works when I realized you'd posted. About the long code, have you ever played Defiance's ORPG? The code was longer, but much less efficient. Would using progressive ints really help? I...
  8. B

    System The Shortest Save/Load Code Ever

    Very sorry for the double post, but the last post is quite old and this one covers a new problem. I'm afraid KODE has reached its limits. It hits the op-limit every time it attempts to load my code. This problem started after I added about 6 or 7 more integers. Funny enough, the load-failure...
  9. B

    System The Shortest Save/Load Code Ever

    Thanks a lot, that fixed my problem perfectly.
  10. B

    System The Shortest Save/Load Code Ever

    Ok, heres the information (screenshot) Note that the top bit dump was done before I called create_code. This is because when I tried to call it after create_code it would display (null). Of course the second dump is after the load. The only code I changed was function format_code takes...
  11. B

    System The Shortest Save/Load Code Ever

    Very sorry for the double post, but I can't get it to work for some reason. Ok I looked at your demo maps and found that load_code returns a boolean if security checks out. True = yes, false = no. So After building all my save code, and about 50% of the load code, I decided to test it out. To...
  12. B

    System The Shortest Save/Load Code Ever

    I figured, thats why I also put it in a library. :P Oh, if your using a mac, then you won't be familiar with vJASS functions. Libraries are automatically placed in an order of your choice at the top of the map .j file. This frees me from having to worry it won't be callable from some locations...
  13. B

    System The Shortest Save/Load Code Ever

    My only gripe with KODE, is the weird way it displays in TESH. Unless your fanatic about line spacing, their must be a problem with the carriage returns you put in. Look at the screenshot, theres at least 1 carriage returns between each line. Of course that problem is very minuscule and doesn't...
  14. B

    System The Shortest Save/Load Code Ever

    @Geoff Ummm no. Why not? Simply because Kode saves what you tell it to. The hero saver is an example, it is not to be used as anything BUT an example. You must program your own hero saver, then it well be YOU who decides whether or not it saves abilities not normaly had by a hero/unit...
Top