Wanted to say thanks for the info and help on events.... I had another question. if global variables are stored in the config.xml, where are player variables stored? and are they retained even after a player logs off?
Also.... I noticed that within the config.xml, once the server has executed all the comments ( ) within the Event tags get removed or parsed out... can we correct this somehow. I am an old school coder and am used to having them as an aid to keep things organized...
(...) if global variables are stored in the config.xml, where are player variables stored? and are they retained even after a player logs off?
Player variables are stored much like local variables; they are volatile and are not saved to a file. However, player variables retain their value until the server restarts (using /reload doesn't clear the variable). Also, they are not retained if a player logs off.
Player variables are stored much like local variables; they are volatile and are not saved to a file. However, player variables retain their value until the server restarts (using /reload doesn't clear the variable). Also, they are not retained if a player logs off.
ack, that is not the answer i was hoping for... I need a way to store information for each player, that is stored for the long term... I really do not want to create multiple global variables for every single player... that will get messy fast. ;(
OK if i want a "$" inside of a string... how do I get it stored into a variable? it keeps erroring out because its trying to find the global variable... I even tried using $... Not sure how to do it.
Ok... Ginbot, Been trying to catch you on, for the last few days, but have had no luck... So, Just how "involved" are you in the event script development of SS? I hae a few questions, Ideas, and suggestions that I wanted to go over with you if you were up to it. Just let me know what suits you best....
Ok... Ginbot, Been trying to catch you on, for the last few days, but have had no luck... So, Just how "involved" are you in the event script development of SS? I hae a few questions, Ideas, and suggestions that I wanted to go over with you if you were up to it. Just let me know what suits you best....
The past week or so has been very busy for me; sorry for that radio silence there.
I've only been involved with SimpleServer's event system fairly recently. Much of its functionality has been around for over a year if I recall correctly. I've been making improvements on the event system's functionality (a few postfix operators and other commands) but haven't tested it enough that I can feel safe adding it to the official SS code.
If you need my help, email ginbot86 (at) gmail (dot) com. Even when I'm not on console, I do read emails (and you're more likely to get a timely response as well).
i asked this on the old thread, but i figured it probably wont get answered there, so:
where can i download the version for beta 1.7.3? i used to use it for my server when that version was new, and its fantastic! im now starting a new beta 1.7.3 server and i cant find the old download anywhere.
i asked this on the old thread, but i figured it probably wont get answered there, so:
where can i download the version for beta 1.7.3? i used to use it for my server when that version was new, and its fantastic! im now starting a new beta 1.7.3 server and i cant find the old download anywhere.
Ok Gin, Here is a quick bit of code in event scripts i threw together REAL quick to display the last few players to log on / respawn.
<event name="lastOn">
rem Init Vars
set '#numDisp 4
set '#count #numDisp
set '#msg " "
rem Disp Last Players On
say #PLAYER "§b-=== Last" #numDisp .. "Players to LogOn / ReSpawn ===- §0(lastOn v1.0 By:Xyvius)§r" ..
while #count 0 gt
set '#msgA "§6" #count . ":§f" .
set '#msgB "'$lastOn_" #count . evalvar
set '#msg #msg #msgA .. #msgB ..
dec '#count
endwhile
say #PLAYER #msg
rem Check player in list?
set '#limit #numDisp
while #count #numDisp lt
inc '#count
set '#player "'$lastOn_" #count . evalvar
if #PLAYER #player eq
set '#limit #count
endif
endwhile
rem Set Shift Limit
if #limit #count lt
set '#count #limit
endif
rem Shift names
while #count 1 gt
set '$lastOn_ #count . '$lastOn_ #count 1 - . evalvar
dec '#count
endwhile
rem Set player to last on
set '$lastOn_1 #PLAYER
</event>
<event name="lastOn_1" value="Last On"/>
<event name="lastOn_2" value="2nd2Last"/>
<event name="lastOn_3" value="3rd2Last"/>
<event name="lastOn_4" value="4th2Last"/>
You can adjust #numDisp to be however many you want to display and just add/remove global varriables to match... Put in place holder values to start so no errors occur. I used some dashes ("------") Doesn't matter really what they are.
Just checking in on everyone. Not really adding new features, just making sure SimpleServer works on each version is my main goal. I have far too many projects of my own to really take on the love and care this project needs.
I'll keep it working on future Minecraft versions for the foreseeable future, just wondering if anyone has any strange bugs or problems that I haven't encountered, that I need to take a look at it.
This is in folders depending on Minecraft version. (EX 1.6.2 folder is for Minecraft 1.6.2). I'll probably start doing release builds and raw JARs on whatever version comes out next.
I'm not sure. iBot was mentioning talking with sadimusi about creating a new thread but I haven't heard any news as of late.
Wanted to say thanks for the info and help on events.... I had another question. if global variables are stored in the config.xml, where are player variables stored? and are they retained even after a player logs off?
Thanks again for all the help
Player variables are stored much like local variables; they are volatile and are not saved to a file. However, player variables retain their value until the server restarts (using /reload doesn't clear the variable). Also, they are not retained if a player logs off.
Instead of using XML comments in events, use the "rem" command to mark lines as comments.
ack, that is not the answer i was hoping for... I need a way to store information for each player, that is stored for the long term... I really do not want to create multiple global variables for every single player... that will get messy fast. ;(
Doh, I should have thought to look for such a command, feel idiotic on that one
The past week or so has been very busy for me; sorry for that radio silence there.
I've only been involved with SimpleServer's event system fairly recently. Much of its functionality has been around for over a year if I recall correctly. I've been making improvements on the event system's functionality (a few postfix operators and other commands) but haven't tested it enough that I can feel safe adding it to the official SS code.
If you need my help, email ginbot86 (at) gmail (dot) com. Even when I'm not on console, I do read emails (and you're more likely to get a timely response as well).
where can i download the version for beta 1.7.3? i used to use it for my server when that version was new, and its fantastic! im now starting a new beta 1.7.3 server and i cant find the old download anywhere.
I'm not sure if anyone has the old jar of SimpleServer 8.2.3 lying around anymore (I for sure don't), but if you're up to the challenge, download the source code from https://github.com/SimpleServer/SimpleServer/archive/8.2.3.zip, and compile it using instructions from https://github.com/SimpleServer/SimpleServer/wiki/Compiling-Your-Own-SimpleServer.jar-Version
Right now I'm tring to get a .jar compiled and working. My current workstation setup isn't helping me with this.
Also, will you be running SimpleServer on Windows, or another operating system like Linux?
EDIT: im going to be using it on windows.
EDIT: ok, i can get it running in eclipse. but after using apache ant to compile it, it gives this error:
http://puu.sh/3Y3ps.png
EDIT: NEVERMIND ITS BECAUSE THE VERSION WAS NULL I JUST NEEDED TO DO A NULL CHECK AHHAHAHA
thanks for the help ginbot
http://puu.sh/3Y0hw.png
You can adjust #numDisp to be however many you want to display and just add/remove global varriables to match... Put in place holder values to start so no errors occur. I used some dashes ("------") Doesn't matter really what they are.
I'll keep it working on future Minecraft versions for the foreseeable future, just wondering if anyone has any strange bugs or problems that I haven't encountered, that I need to take a look at it.
In case you need a JAR for Minecraft 1.6.2.
http://ibotpeaches.com/simpleserver/
This is in folders depending on Minecraft version. (EX 1.6.2 folder is for Minecraft 1.6.2). I'll probably start doing release builds and raw JARs on whatever version comes out next.
I've created an experimental build with 1.6.4 support. All that seems to have changed is the Minecraft protocol version, but I could be wrong.
Once again, this .jar is built and tested on Windows only.
https://www.dropbox.com/s/4x3xfgnv4skpvjy/SimpleServer.1.6.4.jar