Dedicated server on raspberry pi

Post here if you need help setting up your server, etc.
User avatar
Galaxip
Core Dumper
Posts: 120
Joined: Wed Aug 24, 2016 10:49 pm
Contact:

Re: Dedicated server on raspberry pi

Post by Galaxip »

@kyle cool thanks ,i might take a look at that too

@nelg I checked my console.txt file for server2 this morning as I was going to grep all those commands but the file was empty :o

I looked through my scripts and found a line I had left in from when I was debugging rm -rf $consoletxt
when I rebooted my servers last night I have wiped all the console logs for all 6 servers :oops:

sorry
Image Image Image Image
User avatar
Galaxip
Core Dumper
Posts: 120
Joined: Wed Aug 24, 2016 10:49 pm
Contact:

Re: Dedicated server on raspberry pi

Post by Galaxip »

i did a quick search for _help (missing help) in the armagetron commands on this build and found 102 commands with missing help

and then theres commands like spawn_zone which do have help but says nothing about naming the zone

some are obvious but others not so

I would love to fix the help file if I had the information

Code: Select all

ACCESS_LEVEL_SUBSTITUTE				access_level_substitute_help
ACCESS_LEVEL_VOTE_CHALLENGE			access_level_vote_challenge_help
ADD_SCORE_PLAYER				add_score_player_help
ADD_SCORE_TEAM					add_score_team_help
ADMIN_KILL_MESSAGE				admin_kill_message_help
AUTO_SUBSTITUTION				auto_substitution_help
CHATLOG_WRITE_PM				chatlog_write_pm_help
CHATLOG_WRITE_TEAM				chatlog_write_team_help
CHAT_TOOLTIP					chat_tooltip_help
CONDENSE_CONQUEST_OUTPUT			condense_conquest_output_help
CYCLE_BRAKE_TOOLTIP				cycle_brake_tooltip_help
CYCLE_TURN_LEFT_TOOLTIP				cycle_turn_left_tooltip_help
CYCLE_TURN_RIGHT_TOOLTIP			cycle_turn_right_tooltip_help
DEATH_SHOT					death_shot_help
DELAY_COMMAND					delay_command_help
END_CHALLENGE					end_challenge_help
GLANCE_BACK_TOOLTIP				glance_back_tooltip_help
GLANCE_LEFT_TOOLTIP				glance_left_tooltip_help
GLANCE_RIGHT_TOOLTIP				glance_right_tooltip_help
GRID_POSITION_INTERVAL				grid_position_interval_help
KILL_ALL					kill_all_help
LADDERLOG_WRITE_ADMIN_COMMAND			ladderlog_write_admin_command_help
LADDERLOG_WRITE_ADMIN_LOGIN			ladderlog_write_admin_login_help
LADDERLOG_WRITE_ADMIN_LOGOUT			ladderlog_write_admin_logout_help
LADDERLOG_WRITE_CYCLE_CREATED			ladderlog_write_cycle_created_help
LADDERLOG_WRITE_END_CHALLENGE			ladderlog_write_end_challenge_help
LADDERLOG_WRITE_INVALID_COMMAND			ladderlog_write_invalid_command_help
LADDERLOG_WRITE_MATCH_SCORE			ladderlog_write_match_score_help
LADDERLOG_WRITE_MATCH_SCORE_TEAM		ladderlog_write_match_score_team_help
LADDERLOG_WRITE_NEW_SET				ladderlog_write_new_set_help
LADDERLOG_WRITE_NEXT_ROUND			ladderlog_write_next_round_help
LADDERLOG_WRITE_PLAYER_GRIDPOS			ladderlog_write_player_gridpos_help
LADDERLOG_WRITE_PLAYER_KILLED			ladderlog_write_player_killed_help
LADDERLOG_WRITE_ROUND_COMMENCING		ladderlog_write_round_commencing_help
LADDERLOG_WRITE_SET_WINNER			ladderlog_write_set_winner_help
LADDERLOG_WRITE_SPAWN_POSITION_TEAM		ladderlog_write_spawn_position_team_help
LADDERLOG_WRITE_START_CHALLENGE			ladderlog_write_start_challenge_help
LADDERLOG_WRITE_SVG_CREATED			ladderlog_write_svg_created_help
LADDERLOG_WRITE_TACTICAL_POSITION		ladderlog_write_tactical_position_help
LADDERLOG_WRITE_TACTICAL_STATISTICS		ladderlog_write_tactical_statistics_help
LADDERLOG_WRITE_VOTER				ladderlog_write_voter_help
LADDERLOG_WRITE_VOTE_CREATED			ladderlog_write_vote_created_help
LADDER_HIGHSCORE_OUTPUT				ladder_highscore_output_help
LEGACY_LADDERLOG_COMMAND			legacy_ladderlog_command_help
LIMIT_SETS					limit_sets_help
LOAD_CFG_WITH_MAP				load_cfg_with_map_help
MAP_ROTATION_ADD				map_rotation_add_help
MAP_ROTATION_CLEAR				map_rotation_clear_help
MAP_ROTATION_MODE				map_rotation_mode_help
MEGA_SHOT_DIR					mega_shot_dir_help
MEGA_SHOT_EXPLOSION				mega_shot_explosion_help
MEGA_SHOT_MULT					mega_shot_mult_help
MEGA_SHOT_THRESH				mega_shot_thresh_help
RESPAWN_PLAYER					respawn_player_help
RESPAWN_TIME					respawn_time_help
SCORE_DIFF_WIN					score_diff_win_help
SCORE_FLAG_HOME_BASE				score_flag_home_base_help
SELF_DESTRUCT					self_destruct_help
SELF_DESTRUCT_FALL				self_destruct_fall_help
SELF_DESTRUCT_RADIUS				self_destruct_radius_help
SELF_DESTRUCT_RISE				self_destruct_rise_help
SELF_DESTRUCT_ROT				self_destruct_rot_help
SET_AI_POSITION					set_ai_position_help
SET_PLAYER_TEAM					set_player_team_help
SHOT_DISCARD_TIME				shot_discard_time_help
SHOT_EXPLOSION					shot_explosion_help
SHOT_RADIUS_MAX					shot_radius_max_help
SHOT_RADIUS_MIN					shot_radius_min_help
SHOT_ROT_MAX					shot_rot_max_help
SHOT_ROT_MIN					shot_rot_min_help
SHOT_SEEK_UPDATE_TIME				shot_seek_update_time_help
SHOT_START_DIST					shot_start_dist_help
SHOT_THRESH					shot_thresh_help
SHOT_VELOCITY_MULT				shot_velocity_mult_help
SILENCE_DEAD					silence_dead_help
SPAWN_ALTERNATE					spawn_alternate_help
SPAWN_EXPLOSION					spawn_explosion_help
SPAWN_WINNERS_FIRST				spawn_winners_first_help
SPAWN_WRAP					spawn_wrap_help
SP_LIMIT_SETS					sp_limit_sets_help
SP_SCORE_DIFF_WIN				sp_score_diff_win_help
START_CHALLENGE					start_challenge_help
SUICIDE_MESSAGE					suicide_message_help
SVG_CYCLE_WALLS_GLOW				svg_cycle_walls_glow_help
SVG_OUTPUT_LOG_SCORE_DIFFERENCES		svg_output_log_score_differences_help
SVG_OUTPUT_TIMING				svg_output_timing_help
SVG_TRANSPARENT_BACKGROUND			svg_transparent_background_help
SWITCH_VIEW_TOOLTIP				switch_view_tooltip_help
TACTICAL_POSITION_ENABLE			tactical_position_enable_help
TACTICAL_POSITION_INTERVAL			tactical_position_interval_help
TACTICAL_POSITION_MIDFIELD_FACTOR		tactical_position_midfield_factor_help
TACTICAL_POSITION_START_TIME			tactical_position_start_time_help
TACTICAL_POSITION_ZONE_FACTOR			tactical_position_zone_factor_help
TELEPORT_PLAYER					teleport_player_help
TOGGLE_SPECTATOR_TOOLTIP			toggle_spectator_tooltip_help
VOTING_BIAS_CHALLENGE				voting_bias_challenge_help
ZOMBIE_ZONE					zombie_zone_help
ZOMBIE_ZONE_FALL				zombie_zone_fall_help
ZOMBIE_ZONE_RADIUS				zombie_zone_radius_help
ZOMBIE_ZONE_RISE				zombie_zone_rise_help
ZOMBIE_ZONE_ROT					zombie_zone_rot_help
ZOMBIE_ZONE_SPEED				zombie_zone_speed_help
**edit** Ive just noticed that spawn_zone help is hard coded inside gWinZone.cpp line 6095, I understand why it was done but .. anyway its strange
Last edited by Galaxip on Tue May 12, 2020 3:45 am, edited 1 time in total.
Image Image Image Image
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1876
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Dedicated server on raspberry pi

Post by kyle »

Because the commands are missing the _help in the language files, that probably means either the help is hard coded like spawn_zone or it's also missing there.

Since you have details on SPAWN_ZONE, I would suggest adding the spawn_zone_help for it and changing the command to use that instead of the hard coded version. Do that and submit a pull request. I'm sure you may have questions around all that, so it would be a good way to get your feet wet in the code.

Once you've done that, then did into some of the other areas, maybe target zone related commands

Also please note that target zone commands and SPAWN_ZONE are only in sty+ct And any forks of that, but commands like "ACCESS_LEVEL_SUBSTITUTE" are actually missing in the 0.2.8 and should be made as a PR based off of that branch and pulled into that. Then merges down into sty+ct, some of those may require an update, for instance if we Document what each of the LADDERLOG_WRITE_ commands actually write, they very between 0.2.8.* and sty+ct, as sty+ct typically has more information written to the log.

Feel free to ask for more detail on what I said, I'm not sure what you know and what you don't know, so keeping it somewhat minimal.

Also this could probably be split into a new thread.
Image
User avatar
Galaxip
Core Dumper
Posts: 120
Joined: Wed Aug 24, 2016 10:49 pm
Contact:

Re: Dedicated server on raspberry pi

Post by Galaxip »

I found this in my pi armagetron maps webserver log and was wondering if anyone knows what it is trying to accomplish ? it looks like its trying to create a cookie

95.168.165.186 - - [10/May/2020:10:43:46 +0100] "\x03\x00\x00/*\xE0\x00\x00\x00\x00\x00Cookie: mstshash=Administr" 400 157 "-" "-"

--------------- edit ------------------

I found little info about remote desktop exploit, still looking

update: I found this source code on pastebin that matches

https://pastebin.com/PSbQXJYL
Image Image Image Image
User avatar
aP|Nelg
Match Winner
Posts: 621
Joined: Wed Oct 22, 2014 10:22 pm
Contact:

Re: Dedicated server on raspberry pi

Post by aP|Nelg »

Galaxip wrote: Thu Apr 02, 2020 5:29 am thanks for that nelg and thanks for your help in game

found the random crashing is mostly due to the zones, any zone appears (win, death, zombie etc) the server crashes
I think I've found all the relevant revisions to merge in from mainline, so +ap should work now. I'm told that these semi-manual merges are making my life harder, but when I'm feeling up to it I'll probably start reimplementing this stuff in 0.4. (probably never, heh :P .. or maybe I'll pester z-man about armagetron's network code and try to make 3dcycles work with armagetron in some fashion)
kyle wrote: Tue May 12, 2020 3:44 am merges down into sty+ct, some of those may require an update
Oh, well, that's a massive advantage of having to control what goes in then. Heh. The 0.4 ladder "spec" system is arguably superior there though, even though I'm not sure there's a consistent naming convention of the events' outputs
Galaxip wrote: Tue May 12, 2020 1:43 am i did a quick search for _help (missing help) in the armagetron commands on this build and found 102 commands with missing help

and then theres commands like spawn_zone which do have help but says nothing about naming the zone

some are obvious but others not so

I would love to fix the help file if I had the information
I know I'm basically a walking advertisement for +ap, but for the most part the commands are actually documented. Even what the ladderlog events write.
Post Reply