Jump to content
The Indie Stone Forums

Koregan

Member
  • Content Count

    131
  • Joined

  • Last visited

About Koregan

  • Rank
    Advanced Member

Profile Information

  • Gender
    Woman

Recent Profile Visitors

465 profile views
  1. There are some functions which were not present to me. I never have seen getMouseXScaled(), getCore():getVersionNumber(), and the new syntax of spawnHorde(). So thanks for posting your code.
  2. Okay, checked the class-files and found the interesting line: public static IsoZombie createZombie(float x, float y, float z, SurvivorDesc desc, int palette, IsoDirections dir) Tried it and it works. I can now again spawn Zombies on single tiles on our server.
  3. Sorry i was wrong, i found it in the steps.lua: function FightStep:OpenWindow() if FightStep.window:IsOpen() then FightStep.zombie = createZombie(FightStep.zombieSpawnX, FightStep.zombieSpawnY, 0, nil, 0,IsoDirections.E); while not FightStep.zombie:getDescriptor():isFemale() do FightStep.zombie:removeFromWorld(); FightStep.zombie:removeFromSquare(); FightStep.zombie = createZombie(FightStep.zombieSpawnX, FightStep.zombieSpawnY, 0, nil, 0,IsoDirections.E); end FightStep.zombie:setUseless(true); return true; end return false;endSo it seems to be createZombie(x, y, z, nil, 0, ViewDirection); But what is the nil and the zero? I think we have to test it out. Or can any dev/modder explain a bit?
  4. I have not checked it out myself for my mod and build32. But i will have a look on it the next days. It is working in the challenge, so it should work also in our mods.
  5. The same for me, but have a look on the challenges. There are zombies spawned, with another command (which I didn't know before). Edit: createZombie();
  6. Thank you Brybry for this information. Didn't know this way or function. For all modders which have / had the same problems a short explaination of getModFileWriter getModFileWriter(String modId, String filename, boolean createIfNull, boolean append ) modId has to be the id of your mod (written as in mod.info), then the file "filename" will be written direct in your moddirectory.
  7. Some questions in first: Is is working in build 32 in general? (It works in SinglePlayer?) Did you have a look on the server-console while starting the server? (The lua-files of the Hydrocraft-mod should be loaded while starting.) No errors on both consoles (server and clients)?
  8. Yeah, an option to safe the Safehouse only when the player is OFFLINE would be awesome. Then your safehouse would be protected for a certain timespan whe you go offline. (With this option it could be enabled on our server to prevent offline robbery.)
  9. But I think there should be access to your own moddirectory. (In the version before (b31), my mod was able to create files in my moddirectory and chatlogs in "Zomboid\Multiplayer".) So if the "local path" would be changed to "Zomboid" instead of "Zomboid\Lua" then it would be also sure that no files outside would be changed.
  10. I have problems using getFileWriter() in build 32(.3): Relative paths are forebidden now, so I have to change to direct paths. Before this build, I used ".."..File.separator.."mods"..File.separator ... to write a file in my ModData-Subdirectory of my ModDirectory. But now, if I give the whole direct path with Core.getMyDocumentFolder()..File.separator .."mods"..File.separator.."KoregansServerMod"..File.separator.."ModData" I get errors, because the local path C:\Users\Andi\Zomboid\Lua\ is standing in front of my direct path. ERROR in console: java.io.FileNotFoundException: C:\Users\Andi\Zomboid\Lua\C:\Users\Andi\Zomboid\m ods\KoregansServerMod\ModData\Playerlist\11-58-58_PlayerList.txt (Die Syntax f¬≥r den Dateinamen, Verzeichnisnamen oder die Datentr√Ķgerbezeichnung ist falsch) Is there a way to set files in my moddirectory instead of zomboid\lua\ ?
  11. Okay, thanks. This will definitively shorten my paths. At the moment they are wider than my screen because of all the "File.separator"s...
  12. I solved it myself, but is there any direct alternative to "File.separator" ? I think this is an important part for any modder (when you want to set paths for your textfiles of the mod). Perhaps I just missed to know the alternative way. (I also tried "file.separator", but "file" is also not available.)
  13. When you install a mod on the server to get the information, then every user has to install the mod. If this is not a problem, then it is possible with a mod. So, it is a private, not public server with some friends playing on it?
  14. Koregan

    Handle a Vector2

    :D Thanks a lot, EasyPickins :D -------------------------------------------------------------------------- But how can I grab the direction D then? player:getAngle():getD() ? If someone knows, please tell me. Otherwise i will have to test and find out on my own...
  15. Thanks - solved with the new function "getUrlInputStream()".
×
×
  • Create New...