Samapico wrote: |
On a side note, what does it do when we use enc_null? Do the passwords end up in plain text somewhere or something? |
Code: Show/Hide unixsignal deadlock prng logman log_console mainloop config log_file playerdata lagdata bw_default net chatnet arenaman mapdata capman mapnewsdl core clientset scoring:persist idle cmdman ; obscene chat cmdlist:cmdlist scoring:stats scoring:basicstats log_sysop log_staff ;; enable this for password security without a billing server: auth_file security:security directory ; billing ;; if you're using a billing server, you'll probably want to use this: ; billing_ssc ; funky:auth_prefix ;; enable this for ?kick: auth_ban banners game_timer flagcore balls bricks koth game freqman lagaction cfghelp filetrans quickfix scoring:jackpot scoring:periodic scoring:points_kill scoring:points_flag scoring:points_goal turf:turf_reward turf:turf_stats turf:points_turf_reward playercmd admincmd help notify sendfile funky:autowarp funky:brickwriter buy fake funky:autoturret funky:record ;; adds compatibility for a bunch of subgame commands: funky:sgcompat ;; uncomment this for multiple pub arena support: ; ap_multipub ;; important: enc_null cannot coexist with either of the other ;; encryption modules! comment it out to use them. ;enc_null security:enc_cont enc_vie |
Samapico wrote: |
Still no luck |
Code: Show/Hide else if (action == MM_DETACH) { //Data hgcore_adata *ad = P_ARENA_DATA(arena, adkey); if(ad->Status != HGS_IDLE) { CleanupGame(arena); } pthread_mutex_lock(&globalmutex); LLFree(ad->Teams); HashFree(ad->Players); pthread_mutex_unlock(&globalmutex); afree(ad->cfg_AllowedGames); //Timers //Callbacks mm->UnregCallback(CB_PLAYERACTION, PlayerAction, arena); mm->UnregCallback(CB_SHIPCHANGE, ShipChange, arena); mm->UnregCallback(CB_FREQCHANGE, FreqChange, arena); mm->UnregCallback(CB_ARENAACTION, ArenaAction, arena); //Commands cmd->RemoveCommand("newgame", C_newgame, arena); cmd->RemoveCommand("addteam", C_addteam, arena); cmd->RemoveCommand("removeteam", C_removeteam, arena); cmd->RemoveCommand("showteams", C_showteams, arena); cmd->RemoveCommand("startgame", C_startgame, arena); cmd->RemoveCommand("stopgame", C_stopgame, arena); cmd->RemoveCommand("listgames", C_listgames, arena); cmd->RemoveCommand("switchgame", C_switchgame, arena); cmd->RemoveCommand("pausegame", C_pausegame, arena); cmd->RemoveCommand("resumegame", C_resumegame, arena); *** MISSING RETURN MM_OK HERE *** } else if (action == MM_PREUNLOAD) //server is shutting down { Link *link; Arena *a; aman->Lock(); FOR_EACH_ARENA(a) { EndGame(a, HGR_FORCED); DetachGame(a); } aman->Unlock(); *** MISSING RETURN MM_OK HERE *** } return MM_FAIL; |
Code: Show/Hide int bla() { printf("bla!\n") } int ret = bla(); |
Code: Show/Hide int bla() { int abc; printf("bla! %d\n", abc) } |
Quote: |
(in theory it could also occur if the module forgets to pass a return value, but the compiler should warn about that). |
Quote: |
playerdata-8 arenaman-9 net-10 config-4 mainloop-3 logman-2 clientset-5 mapdata-9 capman-4 lagcollect-4 prng-2 |
Code: Show/Hide ?py print(I_PLAYERDATA) ?py print(I_NET) check mainloop manually ?py print(I_LOGMAN) |
JoWie wrote: | |
An easy way to check this is to use <py> exec:
|
JoWie wrote: | |||
You could check your source to see if the following interface definitions match:
An easy way to check this is to use <py> exec:
|
Code: Show/Hide ;; this file contains the names of modules to load at startup. modules
;; are specified as 'modname' for internal modules, or ;; 'file:modulename'. file is the name of the .so file (without the ;; .so). ;; ;; the load order of some of these is very sensitive. don't move stuff ;; around without verifying that it's a valid load order. unixsignal deadlock prng logman log_console mainloop config log_file playerdata lagdata bw_default net chatnet arenaman mapdata capman mapnewsdl core clientset scoring:persist idle cmdman ; obscene chat cmdlist:cmdlist scoring:stats scoring:basicstats log_sysop log_staff ;; enable this for password security without a billing server: auth_file security:security directory ; billing ;; if you're using a billing server, you'll probably want to use this: ; billing_ssc ; funky:auth_prefix ;; enable this for ?kick: auth_ban banners game_timer flagcore balls bricks koth game freqman lagaction cfghelp filetrans quickfix scoring:jackpot scoring:periodic scoring:points_kill scoring:points_flag scoring:points_goal turf:turf_reward turf:turf_stats turf:points_turf_reward playercmd admincmd help notify sendfile funky:autowarp funky:brickwriter buy fake funky:autoturret funky:record ;; adds compatibility for a bunch of subgame commands: funky:sgcompat ;; uncomment this for multiple pub arena support: ; ap_multipub ;;------------- ;; important: enc_null cannot coexist with either of the other ;; encryption modules! comment it out to use them. enc_null ;security:enc_cont ;enc_vie ; ^ ; WORKS ; ;;--- OR --- ;enc_null security:enc_cont enc_vie ;^ ; does not work ;;------------- ;; alias database stuff: ; database:mysql ; database:aliasdb ;; python modules: ;; pymod must be loaded before any "<py>" modules. pymod:pymod ; <py> fm_password <py> exec ; <py> fg_wz ; <py> fg_turf objects colors:colors ;colors:say ;colors:voice doors:doors lvzhud:lvzhud ball_motion:ball_motion sockey:sockey hosted:hgcore hosted:hg_race |
Code: Show/Hide asss 1.5.0 built at Jun 7 2011 22:14:36
Loading modules... I <cmod> loading C module 'unixsignal' from 'internal' I <cmod> loading C module 'deadlock' from 'internal' I <cmod> loading C module 'prng' from 'internal' I <cmod> loading C module 'logman' from 'internal' I <cmod> loading C module 'mainloop' from 'internal' I <cmod> loading C module 'config' from 'internal' I <cmod> loading C module 'log_file' from 'internal' I <cmod> loading C module 'playerdata' from 'internal' I <cmod> loading C module 'lagdata' from 'internal' I <cmod> loading C module 'bw_default' from 'internal' I <cmod> loading C module 'net' from 'internal' I <cmod> loading C module 'chatnet' from 'internal' I <cmod> loading C module 'arenaman' from 'internal' I <cmod> loading C module 'mapdata' from 'internal' I <cmod> loading C module 'capman' from 'internal' I <cmod> loading C module 'mapnewsdl' from 'internal' I <cmod> loading C module 'core' from 'internal' I <cmod> loading C module 'clientset' from 'internal' I <cmod> loading C module 'persist' from 'scoring' I <cmod> loading C module 'idle' from 'internal' I <cmod> loading C module 'cmdman' from 'internal' I <cmod> loading C module 'chat' from 'internal' I <cmod> loading C module 'stats' from 'scoring' I <cmod> loading C module 'basicstats' from 'scoring' I <cmod> loading C module 'log_sysop' from 'internal' I <cmod> loading C module 'log_staff' from 'internal' I <cmod> loading C module 'auth_file' from 'internal' I <cmod> loading C module 'security' from 'security' I <cmod> loading C module 'directory' from 'internal' I <cmod> loading C module 'auth_ban' from 'internal' I <cmod> loading C module 'banners' from 'internal' I <cmod> loading C module 'game_timer' from 'internal' I <cmod> loading C module 'flagcore' from 'internal' I <cmod> loading C module 'balls' from 'internal' I <cmod> loading C module 'bricks' from 'internal' I <cmod> loading C module 'koth' from 'internal' I <cmod> loading C module 'game' from 'internal' I <cmod> loading C module 'freqman' from 'internal' I <cmod> loading C module 'lagaction' from 'internal' I <cmod> loading C module 'cfghelp' from 'internal' I <cmod> loading C module 'filetrans' from 'internal' I <cmod> loading C module 'quickfix' from 'internal' I <cmod> loading C module 'jackpot' from 'scoring' I <cmod> loading C module 'periodic' from 'scoring' I <cmod> loading C module 'points_kill' from 'scoring' I <cmod> loading C module 'points_flag' from 'scoring' I <cmod> loading C module 'points_goal' from 'scoring' I <cmod> loading C module 'turf_reward' from 'turf' I <cmod> loading C module 'turf_stats' from 'turf' I <cmod> loading C module 'points_turf_reward' from 'turf' I <cmod> loading C module 'playercmd' from 'internal' I <cmod> loading C module 'admincmd' from 'internal' I <cmod> loading C module 'help' from 'internal' I <cmod> loading C module 'notify' from 'internal' I <cmod> loading C module 'sendfile' from 'internal' I <cmod> loading C module 'autowarp' from 'funky' I <cmod> loading C module 'brickwriter' from 'funky' I <cmod> loading C module 'buy' from 'internal' I <cmod> loading C module 'fake' from 'internal' I <cmod> loading C module 'autoturret' from 'funky' I <cmod> loading C module 'record' from 'funky' I <cmod> loading C module 'sgcompat' from 'funky' I <cmod> loading C module 'enc_cont' from 'security' E <cmod> error loading module 'enc_cont' Unrecoverable error (5): Error in loading module 'security:enc_cont' |