Author |
Message |
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Tue Oct 16, 2007 8:20 am Post subject: ssbilling2 for linux (ported) |
|
|
|
|
Linux port of "SubSpace Billing Server 2 Release 11j" by CatId
(still compiles in windows using dev-c++)
Now you can run a udp biller on linux.
An entire ASSS + Biller setup without wine or windows - oh my!
Only tested on debian linux etch. (probably has a few bugs)
Known Issues:
Netban text can only be changed by editing the subbill.ini (in game doesnt work)
Difficult to compile. See the makefile i enclose. Because CatId used some horrible non-standard c++ which i only vaguly understand it chokes on it if you compile with gcc > 4. Therefore you must compile using gcc 3.4. Then link using your normal g++ lib otherwise pthreads won't work.
I've included the binary.
EDIT: PS don't even think about turning encryption on. 20+ lines of assembly is to try and port was much for me You're welcome to have a go though.
Please check further down the page for an updated version that works with gcc 4.3 _________________ Rediscover online gaming. Get Subspace | STF The future...prehaps
source + bins!
ssbilling2-linux.zip - 159.32 KB
File downloaded or viewed 377 time(s)
Last edited by Doc Flabby on Fri Aug 29, 2008 6:39 am, edited 1 time in total |
|
Back to top |
|
|
L.C. Server Help Squatter
Age:33 Gender: Joined: Jan 03 2003 Posts: 574 Location: Missouri, US Offline
|
Posted: Mon Feb 04, 2008 4:35 pm Post subject: |
|
|
|
|
FreeBSD 6.1
Quote: | ELF binary type "0" not known.
-bash: ./ssbilling2-linux: cannot execute binary file |
All files CHMODed with +x.
|
|
Back to top |
|
|
BDwinsAlt Agurus's Posse
Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Mon Feb 04, 2008 9:52 pm Post subject: |
|
|
|
|
Runs fine on Ubuntu Linux. FreeBSD is different from Linux, so that's probably why. I bet you could tweak something to make it work. Try compiling it using FreeBSD.
|
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:41 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
|
Back to top |
|
|
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Tue Feb 05, 2008 7:01 am Post subject: |
|
|
|
|
i suggest recompiling for your platform, i have included the makefiles..
It would simpley be a matter of typing
"make" in the source directory and seeing if it worked.
|
|
Back to top |
|
|
L.C. Server Help Squatter
Age:33 Gender: Joined: Jan 03 2003 Posts: 574 Location: Missouri, US Offline
|
Posted: Thu Feb 07, 2008 6:08 pm Post subject: |
|
|
|
|
I could not recompile this (using GCC 3.4.4), thus could not launch it.
I tried compiling it with both the 'make' and 'gmake' commands.
|
|
Back to top |
|
|
BDwinsAlt Agurus's Posse
Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Thu Feb 07, 2008 8:35 pm Post subject: |
|
|
|
|
Hmm. Is there any output that you could copy and paste when you try to compile. When I type make -v I get:
GNU Make 3.81
|
|
Back to top |
|
|
L.C. Server Help Squatter
Age:33 Gender: Joined: Jan 03 2003 Posts: 574 Location: Missouri, US Offline
|
|
Back to top |
|
|
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
|
Back to top |
|
|
BDwinsAlt Agurus's Posse
Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Fri Feb 08, 2008 5:41 pm Post subject: |
|
|
|
|
All I had to do was type make. Look in your package manager (if there is one) and download it. I have it installed on my computer already.
|
|
Back to top |
|
|
L.C. Server Help Squatter
Age:33 Gender: Joined: Jan 03 2003 Posts: 574 Location: Missouri, US Offline
|
Posted: Sat Feb 09, 2008 2:45 pm Post subject: |
|
|
|
|
Gave up on FreeBSD. Works fine on Linux and is functional. Took me a while to figure out that when I closed my console it also ended the ssbilling2 process.
I don't think I'll be running a Public Biller again until a decent Linux-based biller that can handle this or cluster with SSC (or something) would be possible.
|
|
Back to top |
|
|
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Sun Feb 10, 2008 4:08 pm Post subject: |
|
|
|
|
You need to run it as a background process to get it to stay open after you close the terminal. Use the &. Similarly with the directory server.
Glad its working for everyone
|
|
Back to top |
|
|
L.C. Server Help Squatter
Age:33 Gender: Joined: Jan 03 2003 Posts: 574 Location: Missouri, US Offline
|
Posted: Mon Feb 11, 2008 1:43 pm Post subject: |
|
|
|
|
Bleh. I just opened a screen and ran it. I think I'm doing that for the ddirserv, but I noticed that the ddirserv will still continue running regardless of adding the & to it.
If you add & to the end of any binary when executing it, it makes that binary run as a background?
|
|
Back to top |
|
|
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Mon Feb 11, 2008 2:01 pm Post subject: |
|
|
|
|
The dirserver is coded alot nicer (based on mervbot) than the biller, which is probably why it works wthout the &
L.C. wrote: |
If you add & to the end of any binary when executing it, it makes that binary run as a background? |
yes
|
|
Back to top |
|
|
L.C. Server Help Squatter
Age:33 Gender: Joined: Jan 03 2003 Posts: 574 Location: Missouri, US Offline
|
|
Back to top |
|
|
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Tue Feb 12, 2008 6:20 am Post subject: |
|
|
|
|
L.C. wrote: | I did notice one minor bug or inconsistency with the mirroring function though. Does it only check the first IP/address unless the first given one doesn't work? |
No idea, might do that in the orginal version.
L.C. wrote: | EDIT :: Running ./ddirserv& didn't make it run in the background. It stopped as soon as I closed Putty. So I reconnected and started a screen to run it. Works fine for me if just use screen. |
You need to type "exit" first (logoff your session) then close putty.
|
|
Back to top |
|
|
Goldeye Novice
Gender: Joined: Dec 15 2003 Posts: 57 Offline
|
Posted: Tue Feb 12, 2008 9:34 pm Post subject: |
|
|
|
|
./ssbilling2& will normally not run once you logout of the shell.
You need to make it a daemon to do that.
Google daemonize.c, someone put it together so you don't have to write it yourself.
|
|
Back to top |
|
|
CypherJF I gargle nitroglycerin
Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Tue Feb 12, 2008 11:14 pm Post subject: |
|
|
|
|
I don't know about this app but even with my biller I have to do what doc said; type "exit" before you close putty. _________________ Performance is often the art of cheating carefully. - James Gosling
|
|
Back to top |
|
|
SSLamby Newbie
Joined: Aug 29 2008 Posts: 1 Offline
|
Posted: Fri Aug 29, 2008 6:08 am Post subject: |
|
|
|
|
I have improved it a little bit to at least compile with gcc 4.3.1.
Basically what I did was to:
> #include <algorithm> // in linkedlist.h to solve the std::reverse error.
> lift out the CallRecvThread and CallResendThread from it's class, in order to make them accessible as pointers for pthread.
>Add a bunch of prototypes for the packet handler functions (HandleSpecial etc.) in both rpc.h and declares.h
>Fixing some warningns due to missing const keywords.
I hope this did not introduce or uncover any new bugs, it appears to work but I have no reference to compare with.
[edit, removed binaries from tarball]
MD5SUM aca2f697c072d4d7e3517c306aa7a285
ssbilling2-linux.tar.bz2 - 61.55 KB
File downloaded or viewed 301 time(s)
|
|
Back to top |
|
|
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Fri Aug 29, 2008 6:38 am Post subject: |
|
|
|
|
Thanks for your contribution. Hopefully someone will find it useful!
The original windows (reference) source is here: http://www.mervbot.com/files/subbill.zip
|
|
Back to top |
|
|
L.C. Server Help Squatter
Age:33 Gender: Joined: Jan 03 2003 Posts: 574 Location: Missouri, US Offline
|
Posted: Sun Aug 31, 2008 11:30 am Post subject: |
|
|
|
|
Quote: | EDIT :: Running ./ddirserv& didn't make it run in the background. It stopped as soon as I closed Putty. So I reconnected and started a screen to run it. Works fine for me if just use screen. sa_tongue.gif | Obsolete now. :\ I realized that when I would launch a program like that, the visual appearance of the things in Putty wouldn't change, but I could freely go ahead and enter in a command and it would work just fine. I use ./program& and then usually do CTRL+A+D or some screen switch to detach from the screen.
|
|
Back to top |
|
|
CypherJF I gargle nitroglycerin
Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sun Aug 31, 2008 3:43 pm Post subject: |
|
|
|
|
I found out using the command "nohup cmd &" does wonders. See the man page for nohup.
|
|
Back to top |
|
|
fatrolls Novice
Age:36 Gender: Joined: Jul 25 2013 Posts: 35 Offline
|
Posted: Thu Jul 25, 2013 12:19 am Post subject: problem with this biller |
|
|
|
|
I tried running this on centos runs properly but when it's connecting to ASSS using ssc_billing i get the following errors..
Invalid login from..?
if I try to connect with just billing without ssc_billing that gives me connection refused error.
This is how the biller looks with ssc_billing enabled
What must i do.
|
|
Back to top |
|
|
fatrolls Novice
Age:36 Gender: Joined: Jul 25 2013 Posts: 35 Offline
|
Posted: Thu Jul 25, 2013 6:29 pm Post subject: |
|
|
|
|
Fixed
in modules.conf pick
ssc_billing
and make
billing to
;billing
|
then in global.conf set
Under
[Billing]
ServerID=27015
GroupId=1
ScoreID=27015
|
|
|
Back to top |
|
|
SpaceHiker Newbie
Joined: Apr 05 2014 Posts: 3 Offline
|
Posted: Sat Apr 05, 2014 2:07 pm Post subject: |
|
|
|
|
For me, this compiles and executes without errors or warnings, creates the .dat files, allows zone servers to connect, and "L" shows the host list.
But, it does not allow users to log in (failed to connect to server).
Any ideas?
my gcc is 4.4.6 and my distro is amazon's CentOS variant (Amazon Linux AMI release 2013.03).
|
|
Back to top |
|
|
|