RSPS commands

kill4joy KJ

Member
Reputation
0
Normally the commands for RSPSes are really messy and inefficient, one can increase the efficiency and organization of commands through an enum + switch which will break every time the command is finished and will not have to go through all the If statements.

I was in the process of doing this for endacia, but it was shut down. The beta test was really promising though, and I'm sure servers that do this will reduce lagg, specially servers with a lot of players.
 
Judgement said:
Post a source example, seems like a rather interesting PoC

Actually, it's not that interesting. You can't make an enum for every single command, as you read the command as plaintext.

Unless I misunderstood your post.


Also, an IF statement in java requires 8 bytes of memory, since every computer nowadays has more than 256MB (2147483648 bytes), an computer with 256 mb ram (which shouldn't be running a RSPS), would lag out if it had to handle 268435456 commands at once, which is pretty much impossible.
 
Flow said:
Judgement said:
Post a source example, seems like a rather interesting PoC

Actually, it's not that interesting. You can't make an enum for every single command, as you read the command as plaintext.

Unless I misunderstood your post.


Also, an IF statement in java requires 8 bytes of memory, since every computer nowadays has more than 256MB (2147483648 bytes), an computer with 256 mb ram (which shouldn't be running a RSPS), would lag out if it had to handle 268435456 commands at once, which is pretty much impossible.

You are not accounting for the fact that it runs multiple if statements at once, some servers have up to 100+ commands(I know endacia did, not to account for all the elseifs and elses). At that time you have to account for multiple people(some servers have up to 1000+ people at a time) then you have to account for multiple actions OTHER then commands happening at once. All in all, it is worth putting into one's server.
 
the reason of these are not working is because of the time and effort it takes to make a quest plus most of these people arnt professional java coders
 
oHvHo said:
the reason of these are not working is because of the time and effort it takes to make a quest plus most of these people arnt professional java coders

It doesn't require you to be a professional java coder, only basic knowledge, and if an owner doesn't have basic knowledge of how to code java, then he shouldn't be an owner.

and what are you talking about? Quests?
 
kill4joy KJ said:
It doesn't require you to be a professional java coder, only basic knowledge, and if an owner doesn't have basic knowledge of how to code java, then he shouldn't be an owner.

and what are you talking about? Quests?

Have you ever run ur own server? I made one from scratch, so i thought i was pretty difficult and i have basic knowledge of Java, but if you can do it props to you :) i think the whole quest click is quite smooth if you ask me though
 
oHvHo said:
Have you ever run ur own server? I made one from scratch, so i thought i was pretty difficult and i have basic knowledge of Java, but if you can do it props to you :) i think the whole quest click is quite smooth if you ask me though


Yes I have run my own server, I have tested and made this work (RSPS commands) as well as several quests. Also, if you made it from "scratch" you would have advanced java knowledge, just saying.
 
kill4joy KJ said:
Yes I have run my own server, I have tested and made this work (RSPS commands) as well as several quests. Also, if you made it from "scratch" you would have advanced java knowledge, just saying.


i had help from my old java teacher last year when i took my first java course, he helped me with the basics and did some of the coding for me
 
Back
Top