Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002221Zandronum[All Projects] Bugpublic2015-05-06 20:022015-05-07 08:31
ReporterDevilHunter 
Assigned To 
PriorityhighSeveritycrashReproducibilityalways
StatusclosedResolutioninvalid 
PlatformLinuxOSUbuntuOS Version10.04 x86-64
Product Version2.0 
Target VersionFixed in Version 
Summary0002221: Zandronum SegFaults when Adding One line to sv_main...
DescriptionSo in order to have global bans work on TSPG, Jenova said that I need to add a line to sv_main.cpp. This line being...

Printf("CONNECTION %s %s\n", players[g_lCurrentClient].userinfo.netname, NETWORK_AddressToString( SERVER_GetClient( g_lCurrentClient )->Address));


It works, as in... It checks the IP of who's connect against the Global Bans List of the BE Bot, and if you are banned, you get the banned message.. However, this affects ZH/BH..

As soon as it changes to any ZH map, or if I start it on a ZH map, the Server will SegFault right then and there. Here is one ServerLog, Here is another.. In that one the server does make it to the map but then crashes right after.
Steps To Reproduce1. hg Clone Zandro rep
2. Open sv_main.cpp
3. go to line 1599
4. add Printf("CONNECTION %s %s\n", players[g_lCurrentClient].userinfo.netname, NETWORK_AddressToString( SERVER_GetClient( g_lCurrentClient )->Address));
5. save file
6. compile
7. Start ZH Server with just compiled Binary.
8. Change to ZM01
9. Crash
Additional InformationHere is the last Crashlog I had before I gave up. Mind you, that a fresh copy of 2.0 zan works just fine.
Attached Files

- Relationships

-  Notes
User avatar (0012207)
DevilHunter (reporter)
2015-05-06 20:08

Forgot to add the wads used for this.. First load with Skulltag_actors-1-1-1.pk3 and skulltag_data_126.pk3 Then...

zh-beta28.pk3
zh-mappack10.pk3
zh-testpack_r26.pk3
zh-testpack_f01.pk3

In that order. Also mind you, that this works just fine on Best-Ever somehow.. I copied everything just as Jenova said and he even showed me how he did it in his sv_main.cpp edit so.. Yea...
User avatar (0012208)
DevilHunter (reporter)
2015-05-06 21:28
edited on: 2015-05-06 21:32

Nvm.. you can close this now.. Turns out to be a damn compiler error.. Had to update gcc, it works now.

EDIT: You have to change the compiler to gcc 4.7. I'm sure I don't have to go in much detail on howto, since I am a Linux scrub heh.


Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2015-05-06 20:02 DevilHunter New Issue
2015-05-06 20:08 DevilHunter Note Added: 0012207
2015-05-06 21:28 DevilHunter Note Added: 0012208
2015-05-06 21:32 DevilHunter Note Edited: 0012208 View Revisions
2015-05-07 08:31 Edward-san Status new => closed
2015-05-07 08:31 Edward-san Resolution open => invalid






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker