Author |
Message |
the_snake Newbie
Joined: May 18 2011 Posts: 2 Offline
|
Posted: Thu May 19, 2011 2:32 am Post subject: security.so request for the latest asss 64 bit |
|
|
|
|
Hey there,
I require the latest security.so in order to run the security modules.
I have the latest asss 64 bit build provided by Jowie..
If anyone could provide me with it, it would be much appreciated..
thanks,
Snake |
|
Back to top |
|
|
JoWie Server Help Squatter
Gender: Joined: Feb 25 2004 Posts: 215 Offline
|
|
Back to top |
|
|
Arnk Kilo Dylie Seasoned Helper
Age:37 Gender: Joined: Jul 14 2006 Posts: 108 Offline
|
Posted: Sun May 22, 2011 8:28 pm Post subject: |
|
|
|
|
He means the security.so module..
Sorry for not seeing this sooner, I didn't realize I logged out so it looked like the forum had no activity.
I'll try to cook something up for you this week. Thanks. I encourage you to bug me in game on Arnk Dylie too because I have many distractions to deal with. |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Mon May 23, 2011 5:26 pm Post subject: |
|
|
|
|
Hmmm, is this why I get this also?
I <cmod> loading C module 'security' from 'security'
E <cmod> error in dlopen: /home/parallel/private_content/subspace/asss/zone/bin/security.so: wrong ELF class: ELFCLASS32
My host just moved to a 64bit server... ?
Edit: Ok, the_snake helped me out... i can run the server now, but we'll need the real one eventually _________________ (Insert a bunch of dead links here) |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Wed May 25, 2011 7:59 am Post subject: |
|
|
|
|
On a side note, what does it do when we use enc_null? Do the passwords end up in plain text somewhere or something? |
|
Back to top |
|
|
Arnk Kilo Dylie Seasoned Helper
Age:37 Gender: Joined: Jul 14 2006 Posts: 108 Offline
|
Posted: Thu May 26, 2011 10:42 pm Post subject: |
|
|
|
|
My linux-carrying HD is disabled probably due to bad cable but it could be worse
so it'll be a bit longer, have to find the time to install linux on my other HD |
|
Back to top |
|
|
JoWie Server Help Squatter
Gender: Joined: Feb 25 2004 Posts: 215 Offline
|
Posted: Mon May 30, 2011 8:04 am Post subject: |
|
|
|
|
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? |
if you load enc_null someone could modify packets with a simple proxy. Passwords are plaintext unless you are on SSC |
|
Back to top |
|
|
Arnk Kilo Dylie Seasoned Helper
Age:37 Gender: Joined: Jul 14 2006 Posts: 108 Offline
|
Posted: Wed Jun 01, 2011 9:16 pm Post subject: |
|
|
|
|
I am looking into getting a new install, but I had a work snafu this weekend and I am going to try to be super careful to not mess up my windows install with a one-HD dual-boot solution so it's going to be this weekend. If not, I will go out and buy a cable to power the old drive.
Thank you for your continued patience -.- |
|
Back to top |
|
|
Arnk Kilo Dylie Seasoned Helper
Age:37 Gender: Joined: Jul 14 2006 Posts: 108 Offline
|
Posted: Mon Jun 06, 2011 9:53 pm Post subject: |
|
|
|
|
https://bitbucket.org/grelminar/asss/downloads
they were built using asss tip...so if you're building from that it will be okay. if you need something else, maybe you should be upgrading instead because this security.so includes the arenarefcount patch which changes up the binary format anyway.. hopefully there won't be anymore things like that
let me know though
i386 = should be compatible on any 32-bit intel thingy
x86_64 = 64-bit |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Mon Jun 06, 2011 11:00 pm Post subject: |
|
|
|
|
Cool thanks. I'll hook it up as soon as I can and tell you how it goes |
|
Back to top |
|
|
the_snake Newbie
Joined: May 18 2011 Posts: 2 Offline
|
Posted: Tue Jun 07, 2011 5:35 am Post subject: |
|
|
|
|
thansk a lot!
seems to be working properly! |
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Tue Jun 07, 2011 6:17 pm Post subject: |
|
|
|
|
works
also why the hell doesnt it allow .so files on the forum |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Jun 07, 2011 7:58 pm Post subject: |
|
|
|
|
Are you running against source from the bitbucket tip? As arnk mentioned, there were some binary incompatibilities introduced that could potentially cause trouble for older versions.
EDIT: you've got the right modules, and I doubt you're running out of memory. Any of the other potential errors print stuff to the log & console, which would be hard to miss. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Tue Jun 07, 2011 8:26 pm Post subject: |
|
|
|
|
I grabbed that source again... but...
am I the only one having this issue:
In defs.h, there's this:
/** ship mask values, notably for use with freqman enforcers */
/* pyconst: define int, "SHIPMASK_*" */
A couple lines later, there's this:
/** use this macro to check whether a certain ship is marked in the mask */
#define SHIPMASK_HAS(ship, mask) ((mask) & (1 << (ship)))
So.... python stuff are giving me errors when I build because it thinks SHIPMASK_HAS is a constant, while it's not :/
I was able to work around that by moving that def to whatever part of the code was using it, but I have to do it again now
There's another similar case, in core.h:
/* pyconst: define int, "AUTH_*" */
...
#define AUTH_IS_OK(a) \
((a) == AUTH_OK || (a) == AUTH_SPECONLY || (a) == AUTH_NOSCORES || (a) == AUTH_ASKDEMOGRAPHICS) |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Tue Jun 07, 2011 8:50 pm Post subject: |
|
|
|
|
Still can't load enc_cont...
I only grabbed the stuff in the 'src' folder of the tip... is there something else I'd need? |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Jun 07, 2011 10:02 pm Post subject: |
|
|
|
|
Not sure exactly what's up with those, but try copying the stuff from scripts/ as well. Perhaps the python parsing stuff was updated. |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Tue Jun 07, 2011 10:16 pm Post subject: |
|
|
|
|
Still no luck
Why do I always get the weirdest bugs... bleh... |
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Tue Jun 07, 2011 11:49 pm Post subject: |
|
|
|
|
pro tip:
thats the message you get when you try to run the 32 bit security.so on a 64 bit system _________________ SSC Distension Owner
SSCU Trench Wars Developer |
|
Back to top |
|
|
JoWie Server Help Squatter
Gender: Joined: Feb 25 2004 Posts: 215 Offline
|
Posted: Wed Jun 08, 2011 7:04 am Post subject: |
|
|
|
|
"Error in loading module" only occurs if the module returns MM_FAIL (=1)
(in theory it could also occur if the module forgets to pass a return value, but the compiler should warn about that).
If you see that error, the dynamic library was properly loaded, so he has the correct architecture.
The error message about an incorrect architecture would probably look like "<cmod> error in dlopen: ..." (linux) or "<cmod> error in LoadLibrary: .." (windows). |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Wed Jun 08, 2011 7:17 am Post subject: |
|
|
|
|
Samapico wrote: | Still no luck |
Were you able to get things compiled, or are you still having trouble with that? |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Wed Jun 08, 2011 8:17 am Post subject: |
|
|
|
|
With the 32 bit version it said this:
I <cmod> loading C module 'security' from 'security'
E <cmod> error in dlopen: /home/parallel/private_content/subspace/asss/zone/bin/security.so: wrong ELF class: ELFCLASS32
Everything compiles fine (after moving the SHIPMASK_HAS and AUTH_IS_OK macros, as explained above... I also added a macro that changes 'stricmp' to 'strcasecmp' because it only exists on Win32...)
The compiler wouldn't necessarily warn about a missing return MM_OK... I had that issue with the hosted game core module, the code looked like this, and apparently i was the only one having issues with it
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; |
|
|
Back to top |
|
|
JoWie Server Help Squatter
Gender: Joined: Feb 25 2004 Posts: 215 Offline
|
Posted: Wed Jun 08, 2011 8:30 am Post subject: |
|
|
|
|
That is because there is still a return MM_FAIL.
If you did something like this (which is valid C):
int bla()
{
printf("bla!\n")
}
int ret = bla();
|
The value of ret is undefined, usually it is whatever is left in the registry.
So it is possible that the return value becomes 1 (MM_FAIL).
This is similar to getting a local variable without ever setting it.
int bla()
{
int abc;
printf("bla! %d\n", abc)
}
|
|
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Wed Jun 08, 2011 10:13 am Post subject: |
|
|
|
|
I know that... I was using it to refute this:
Quote: | (in theory it could also occur if the module forgets to pass a return value, but the compiler should warn about that). |
Most modules have a return MM_FAIL at the end, so if you forget the return MM_OK, you don't get any compiler warning |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Wed Jun 08, 2011 5:24 pm Post subject: |
|
|
|
|
That's not the case in this module. After all, no one else has had this problem, and the module has been used for 8+ years pretty much unchanged.
There are only two reasons that it can fail in this manner (i.e. returning MM_FAIL). Either it fails to get one of lm, playerdata, mainloop or net. Or, far less likely, pd->AllocatePlayerData fails.
So operating under the assumption that it's failing to get one of those 4 modules, the most likely is that you've got different a different header file than one used to compile security.so.
My suggestion is to clone a new copy of the repository using mercurial, rather than upgrading your current one piecemeal. Show any compiler errors that appear (after setting system.mk), as they indicate something's broken. |
|
Back to top |
|
|
|