Seems to me like the rcon should still be triggered even if you are the "server" and do not actually need to type in rcon.
Forum
CS2D General CS2D Bug ReportsSeems to me like the rcon should still be triggered even if you are the "server" and do not actually need to type in rcon.
Also note hook description
Quote
Whenever someone tries to execute commands on the server using the rcon (remote control) functionality. This hook is triggered once per rcon-command call. This means it may contain one or more commands.
It's like Hajt said: The parse-hook is what you're looking for. It's triggered any time a script command is parsed on the server. No matter if it came in via local input while being server or via rcon.
The reasoning behind this is the following:
rcon-hook: Allow to do sanity/security/rights checks on input which comes in via rcon. So most likely you want to forbid to do certain things here and return 1.
parse-hook: Allow to do crazy custom stuff with all the input.
edited 1×, last 02.12.16 08:35:47 pm
Edit: huh huh huh wat is dis and why did i think this worked differently
Quote
Attention: This hook is only triggered when the server itself is parsing commands (either directly or with rcon). You can't handle client parsing with hooks.
My bad. Ignore everything I said
1
2
3
4
5
6
2
3
4
5
6
isRcon = false addhook("rcon","myrcon") function myrcon() 	isRcon = true end
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("parse", "myparse") function myparse(cmds) 	if isRcon then 		print(cmds.. " executed via rcon") 	else 		print(cmds.. " executed locally on server") 	end 	isRcon = false end
This is possible because the rcon hook is always executed before parse (at least I think so, didn't double check)
Edit: Oh. Well.. anyway: It's possible to differentiate
At start server i host map, and 1 player connect and spawn on it correctly, but then 2 client try to connect to server, and for 5-10 seconds server and/or 1 client change its status to "does not respond"... after 20 second with "loading server data" for 2 client is shown a team menu and it can be spawned at game and more than this all scripts works fine for server and both clients on it but a bit later 5-10 second at 2 client have stopped screen frame - apparently it stop receive data from the server but it send its data to server (because 2 client tank correctly move and rotate its turret) and after 5-10 second server or/and 1 client change its status to "does not respond" again and some time later(20-30 second) them crushed down without any error messages... 2 client still have stopped screen frame waiting any signal from server and just after minute show message that connection is lost...
i can show you that problem in real time via skype share screen or remote screen view of services join.me or teamviewer or ammyy admin
im still waiting DC's comment or answer
edited 1×, last 12.12.16 10:41:04 am
Your log is weird though. Is this the log from server or from client? Because it contains
1
[00:18:44] ----- Server started -----
1
2
2
[00:18:46] Connecting to 192.168.1.21:36963... [00:18:50] " (1x)
So it actually contains both, logs from client(s) and logs from server.
Did you maybe start all the instances (servers and clients) at the same time with a script? If they start within the same second they will all use the same log file and this may cause the issues.
Suggestion: Do not start them at exactly the same time or copy your CS2D folder once for each instance you want to run and run the distinct exe files. This way you can be sure that the different instances don't interfere with each other in the file system.
and btw: your USGN login data seems to be corrupted. You should delete sys/usgn_pw.dat and/or sys/usgn_upw while CS2D is not running and afterwards enter your login data again in the settings.
DC has written
and btw: your USGN login data seems to be corrupted. You should delete sys/usgn_pw.dat and/or sys/usgn_upw while CS2D is not running and afterwards enter your login data again in the settings.
Also this error appear when someone opens Options in-game after a fresh installation.
alias t "bind h map test"
or
alias t "bind h map test
and i try
alias t 'bind "h map test"'too
edit
sry fixed
alias t "exec sys/t.cfg
edited 1×, last 14.12.16 04:47:56 am
Here is the normal look
And here is the Colored tiles in the editor
idk if this is a bug, but i wanted to share it
DC has written
@ Pagyra: Calling people who actually create stuff lazy is simply inappropriate and wrong.
And I hope you also see the irony of what you're saying because it's coming from someone (you) who actually uses CS2D for crazy stuff it was never even remotely intended for (and who's then complaining all the time about its limits and errors instead of writing an own game from scratch).
And I hope you also see the irony of what you're saying because it's coming from someone (you) who actually uses CS2D for crazy stuff it was never even remotely intended for (and who's then complaining all the time about its limits and errors instead of writing an own game from scratch).
Earlier Bug Report
Lets we check your game with using Memory Debugger Dr. Memory.
Dr. Memory has written
It is a memory monitoring tool capable of identifying memory-related programming errors such as accesses of uninitialized memory, accesses to unaddressable memory (including outside of allocated heap units and heap underflow and overflow), accesses to freed memory, double frees, memory leaks, and (on Windows) handle leaks, GDI API usage errors, and accesses to un-reserved thread local storage slots.
That is condensed
edited 1×, last 27.12.16 04:27:52 pm
It's pathetic.
Would be interesting to run this check against another comparable BlitzMax application and also a minimalistic dummy BlitzMax app and to see how much of the stuff comes from BlitzMax itself already.
Also note that this program only offers a simple check which can't be accurate for logical reasons. The program doesn't know how CS2D works and allocates/keeps stuff. Note the big fat word potential and suspected false positives.
edited 1×, last 28.12.16 04:02:10 pm
Admin/mod comment
§4.5 - Stick to the point! No off-topic posts!___
DC, please, fix asap this thing which not allow me to tray cs2d.
edited 1×, last 08.01.17 07:55:24 pm
For example i need to close my cs2d to open bandicam, then open cs2d again, bcs bcam would be in highter priority atm when i launch it, after - i'll be able to record.. Also when you recieve some notifications or something in Full-screen - cs2d goin' in tray = you'll need to kill process, or go in the game and while it's blacks screen click "ESC+9" = disconnect, "ESC+ENTER" to quit cs2d completely. This is really so annoying.. For example while you making map and you recieved a notification - you'll lose your map.. Sometimes you may forget that you need to save the map and you done much. "OFF ALARMS?" but we may evade it with fix.
The fix with some small things would be not really little or whatever. Since this bug sometimes cause your "run as a hero" which make your speed higher than 100. I tried that in 2x CS2D. Some1 on the server may think you're cheater while in tray.
You may do it with prefix alpha of beta x.. for example b1.0.0.2a, this means alpha of version 2 :D. I'm interesting why it's not possible to make a small update? You still have some more numbers for cs2d.. it may be 1.0.0.21 etc.
Ok since it's forbidden what i said above, i deserve a tban, but i said what i want.. I'm sorry about that.
EDIT:
Changing window mode from full screen to window or vice versa, unbinds all binds. So boring.
edited 1×, last 28.01.17 04:52:59 pm