Recent content by Korolen

  1. Korolen

    System The Shortest Save/Load Code Ever

    Kode is neither MPI nor not MPI, the categorization doesn't really apply to a save/load system. Kode can generate codes for as many players as you need it to, one right after the other.
  2. Korolen

    System The Shortest Save/Load Code Ever

    While that particular demo is not MPI, rest assured that the Kode internals can easily generate numerous codes for each player, one right after the other if the need be.
  3. Korolen

    System The Shortest Save/Load Code Ever

    Trigger - Run (Ignoring Conditions) Look at the code in the demos for examples.
  4. Korolen

    System The Shortest Save/Load Code Ever

    Glad to hear that. What was the problem? Sorry for not responding in time – I rebooted my computer before I hit submit :nuts:
  5. Korolen

    You shouldn't need to modify the Kode script to do that. Unless you are changing the way Kode...

    You shouldn't need to modify the Kode script to do that. Unless you are changing the way Kode saves codes, you can do everything you need in your own trigger, wether that be in GUI or JASS. If you are better at GUI, then you should just use it; then, you won't have to deal with compile errors...
  6. Korolen

    Kode Help

    OK, there are a number of things here that need to be fixed. You never load what the player types in into Kode. You have obviously confused yourself with all your one-letter variables; you never initialized "i" in LoadHero, for example. You set the intelligence of the hero twice when loading...
  7. Korolen

    System The Shortest Save/Load Code Ever

    Not to be rude, but your problem is pretty basic. The Kode guide should help you out.
  8. Korolen

    System The Shortest Save/Load Code Ever

    Kode seeds the random generator based on a player's name, and then uses the "random" results to start changing the code around to encrypt it. To decrypt, it calculates the same seed based on the player's name and thus the "random" numbers it gets when decrypting turn out to be the same ones it...
  9. Korolen

    System The Shortest Save/Load Code Ever

    Yeah... I guess a side effect of loading/saving a code is that the random number generator would always be set to a predictable value. Just generate a random number before using a Kode function that seeds the generator, and after you're done with Kode, re-seed the generator with the original...
  10. Korolen

    System The Shortest Save/Load Code Ever

    A code is not specific to a map, but rather to a loading and saving procedure, which, of course, could be the same between multiple maps.
  11. Korolen

    System The Shortest Save/Load Code Ever

    I'm very interested in any bugs you can find in Kode. This sounds like a bug in the demo map, but I'd be happy to take a look. Exactly what steps did you follow for this to happen? By the way, the demo only works with a couple of items so if you created anything else, it will most likely brake...
  12. Korolen

    System The Shortest Save/Load Code Ever

    My guess is that you forgot to set Kode_Charmap and Kode_Security in the Variable Editor. When you copy the trigger out of the Kode distribution map, the WE doesn't copy the default values for the variables, just the variables themselves. Aside from that, I'd have to get more information to see...
  13. Korolen

    System The Shortest Save/Load Code Ever

    I can only help you if you post your code. Without that information, it's impossible for me to show you what's wrong. You might consider using AceHart's system, though, as it's quite a bit simpler to use than Kode.
  14. Korolen

    System The Shortest Save/Load Code Ever

    While I admit that I haven't read the source code for your code system, I have read the tutorial/manual for it which outlines its usage. The way it works gives the user the freedom of not specifying a maximum value for integers added to the code in their script but rather have it guessed...
  15. Korolen

    System The Shortest Save/Load Code Ever

    I don't want to review my own system, but as nobody has posted here in a while, I'll clarify some of the aspects of Kode: Kode is written 100% in JASS. Kode has GUI-Friendly version which simply is a wrapper to the JASS that makes it easy to work Kode without any Custom Script lines. Kode...
Top