@LordFoobar, personally I'm waiting for lua gui api, so that all this things could be done omitting the use of chat commands
Posts by andyzee
-
-
updated the first post
-
Good job, @LordFoobar. Hope you publish it soon
my github name is same as here -
@LordFoobar, Can you please start a new topic and upload the modified script to it? I hope that I'll come back soon, but I cannot maintain it right now
-
@red51 and please, show us a good way to implement it. Like a built-in l10n function (gettext-like) and a way to create language files, thanks
-
reload game client if you are doing this in singleplayer
there should be no issue when restarting a dedicated server -
That's all good, I'll definetely try =)
next week, ok? -
About:
It's a very basic script that sets time to 9am and starts a timer with a 1200 seconds(20 real minutes) interval or 12 in-game hours
If you need to check how your world looks at night, just use console 'tod <time>' or 'settime <time>' commands, the timer will continue working anyway and once in 20 real minutes it will set time to 9 o'clock.Installation:
unzip and place endlessday folder in your server's scripts folder (or game scripts folder in case of singleplayer).
It will run automatically on server start and doesn't use any chat commands.P.S.:
Why not to set timer to 2 seconds delay = 1 in-game minute(or even 1 sec) and freeze the in-game time this way?
Well I've tried that and it totally failed, because the method LuaServer:setGameTime() broadcasts the message that server set time bla-bla and with 2 seconds delay it spams it quick enough I guess that it would be a request to developers to remove the message broadcasting or implement "freeze time" option in-game (or in console), what do you think, @red51 ?lol the description is much bigger than the script itself, but hope it'll be useful for someone.
-
@ZaCormyr, Nah, that's just my english level is not enough sometimes, nevermind
-
@ZaCormyr, Sorry maybe I didn't understand you :)) there is no structural integrity considering the caves and terrain voxels yet (maybe they will implement it later). You can theoretically make flying islands and they won't fall.
-
Consider using Linux/Mac/Windows script for regular restarts, I don't know how actually this can be done, but it can Ask on forum
To warn users about the restart - there is already a request of this script here: {REQUEST} Timer Script
Also in this topic you can find red51's answer about timers.
If I get some time and motivation on the weekend, I'll write this timer script (if anyone else doesn't before me ) -
caves and underground stuffs!!!
Checked this out in ME. Theare are several terrain tools right now (cube, sphere, autolevel, etc.) which you can use not only to flatten the ground but also to make caves. There are no natural caves afaik yet. -
To load the script, simply extract the content of the zip-archive to your "scripts" folder of the game (with other words: the "AreaProtection" folder inside the zip must be inside "scripts" of your Rising World folder). The script will be automatically loaded then.If there is no "scripts" folder in your game directory, simply create it.
-
You can't restart server or save data via Lua right now. But you already can broadcast message and set timer! 50% of your list!
-
-
To change time you can use console command:
settime or tod - Change the ingame time
as for endless day/night .. well ok, I'll try
-
That makes sense, we will implement it
Or you can just implement something like getTerrainBlockData(coordinates) etc. and leave paint-like requests to lua scripters =) -
afaik can't be done well right now, there are no timers in lua and no suitable events in lua api, but you can yell or send a text message to a connected player telling him the time server restarts
-
@LordFoobar, new version updated the first post.
-
Try this
[lua]server = getServer();
server:brodcastTextMessage(String paramString);[/lua]