Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
?doormode
Goto page Previous  1, 2
 
Post new topic   Reply to topic Printable version
 View previous topic  asss help Post :: Post Faking population?  View next topic  
Author Message
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Mon Oct 09, 2006 4:48 am    Post subject: Reply to topic Reply with quote

Dr Brain wrote:
I wonder why it's decimal and not hex, because everyone can convert from hex to binary in their head.


Hex should work too, for all integer settings, if you write it as "0x...". Note config.c line 535, which uses strtol with zero as the base argument. That makes strtol accept prefixes "0x" for hex and "0" for octal.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
z.baron+
Guest


Offline

PostPosted: Mon Oct 09, 2006 9:03 am    Post subject: Reply to topic Reply with quote

Quote:
In your compiling line, also add -lpthread to the argument list. This will include the pthreads library. If using Windows, Project->Settings, look for a section for included libraries, and add pthread.lib to the line. Make sure a file named pthread.lib is in the same directory as all your other files.


i've searched my whole computer for pthread.lib and i don't have that file on my computer. do i have to compile pthread.h into a library file first so that i have the .lib file?
Back to top
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Mon Oct 09, 2006 10:14 am    Post subject: Reply to topic Reply with quote

No, you have to download it. I know catid's asss build comes with one... I googled and got this which looks promising: http://sources.redhat.com/pthreads-win32/
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
z.baron+
Guest


Offline

PostPosted: Mon Oct 09, 2006 11:24 am    Post subject: Reply to topic Reply with quote

i was able to find the following pthread libraries

Code: Show/Hide

pthreadVC2.lib - (MSVC/SEH)
pthreadVSE2.lib - (GNUC/C++ EH)


however the dll that is in the current bin\ directory is

Code: Show/Hide

pthreadGC2.dll - (GNUC/not dependent on exceptions)


Trying to use the two libs above just caused different problems (namely , the file would compile, but it would not find the corresponding dll when attempting to load the module).

However, when I started doing more research and applied a little creative thinking I found this file:

Code: Show/Hide

libpthreadGC2.a


Which if I add this in the linkers section, the mod would actually compile and correctly reference the pthreadGC2.dll currently located in the bin\ directory.

So i was actually able to load the autobrick module (also, for anyone else, you have to attach the module to the arena by using ?attmod <module> for it to work). And it worked wonderfully.

So to recap:
* make sure you include util.c in the project
* add the libpthreadGC2.a file to the linked libraries (located at ftp://sources.redhat.com/pub/pthreads-win32/dll-latest/lib/ )


Thanks bak for the link to the pthread site, very helpful.
Thanks mine go boom for the util.h and library adding help
Thanks smong for already writing a module that does what i need.

I can't wait to bother you guys for the next problem that will happen. icon_biggrin.gif
Back to top
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Mon Oct 09, 2006 1:20 pm    Post subject: Reply to topic Reply with quote

I wasn't sure whether to post this earlier, but you with devcpp I just link to the pthread.dll that comes with asss and it seems to work. Compiling modules with devcpp guide.
_________________
ss news
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
z.baron+
Guest


Offline

PostPosted: Mon Oct 09, 2006 2:03 pm    Post subject: Reply to topic Reply with quote

that was going to be my next question before i figured out a working solution, which was "can i just link directly to .dll files".

in codeblocks, the linker limits me to .a and .lib files. unless i'm overlooking something.
Back to top
z.baron+
Guest


Offline

PostPosted: Mon Oct 09, 2006 6:55 pm    Post subject: Reply to topic Reply with quote

yup, you can direcly link .dll files with codeblocks...sigh
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 56 page(s) served in previous 5 minutes.

phpBB Created this page in 0.471152 seconds : 31 queries executed (94.8%): GZIP compression disabled