05-01-2015, 11:46 PM
Is http://mc-server.xoft.cz/LuaAPI/ still automaticly updated? I'm missing the new cBlockArea functions
Random Chitchat 2012-2016
|
05-01-2015, 11:46 PM
Is http://mc-server.xoft.cz/LuaAPI/ still automaticly updated? I'm missing the new cBlockArea functions
05-02-2015, 02:06 AM
No, I have to update it manually ever since I moved out of the flat - I don't have a home server anymore. I'm thinking of tasking my second RasPi with this, as well as compiling and uploading the executables to the Gallery RasPi.
Now with bearbin's builds gone offline, it will be even more difficult, I wanted to just download the API docs built on his server, but without it, I'll have to compile and run the server myself in order to generate the docs. Thanks given by: NiLSPACE
05-02-2015, 09:09 PM
I need volunteers. I have changed the CheckBasicStyle.lua script so that it can check individual files and even the files specifically being committed in Git. This comes handy as a git pre-commit hook - whenever you commit to git, CheckBasicStyle will check your commit before allowing you to actually commit it. And now I need people to test it out
To enable: Update your repo (the support has just been added) Go to your .git/hooks folder, create a text file "pre-commit" there with the following contents: Code: #!/bin/sh Let me know how it works for you. I've found one problem so far, but I consider it a highly unlikely scenario: If you edit a file, stage it for commit, then edit it again and finally commit, Git will commit the staged version, while CheckBasicStyle will check the edited version. Is there anyone who actually uses this scenario? (I hope not Thanks given by: LogicParrot
05-02-2015, 09:49 PM
The script seems Linux only. Is that the case?
05-03-2015, 07:59 AM
It actually works on Windows, too, because Git takes the needed Linux tools with it. At least the version of MsysGit I'm using; perhaps other clients need a different script.
05-03-2015, 10:05 PM
(This post was last modified: 05-03-2015, 10:06 PM by Seadragon91.)
Small question to ChunkStay. Does it only loads the chunk(s) or are the chunk(s) always loaded until the server is stopped?
05-03-2015, 10:10 PM
The chunks unload when they aren't needed anymore. In this case, when the functions finished doing their thing.
05-04-2015, 12:27 AM
There's a slight difference between Lua API's cWorld:ChunkStay() function, and the C++'s cChunkStay object:
cChunkStay object basically locks chunks in memory - a chunk that is listed in any active cChunkStay will not get unloaded. When the cChunkStay object is deactivated / destroyed, the chunk is released from this lock, it can be unloaded again. If a chunk is part of multiple cChunkStays, all of them need to be deactivated before the chunk is allowed to unload. The cWorld:ChunkStay API function queues all the specified chunks to be loaded / generated, and then calls the specified callback; as soon as the callback returns, the chunks are no longer locked in memory and can be unloaded.
I've only just caught up but the hook script can be a lot simpler:
Code: #!/usr/sh
05-04-2015, 07:16 PM
The DigitalOcean auto-creation system now works properly, after a kernel upgrade. I think it even auto-updates the server too.
|
« Next Oldest | Next Newest »
|