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
yet more module compile issues

 
Post new topic   Reply to topic Printable version
 View previous topic  ASSS in a nutshell Post :: Post Passwords and Chats  View next topic  
Author Message
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Fri Dec 19, 2008 1:18 am    Post subject: yet more module compile issues Reply to topic Reply with quote

tcsoccerman wrote:

I think that it would be appropiate for someone to make a sticky on the steps too compiling a clean asss 1.4.4 on windows.


looked at the other sticky, didnt help at all...
not trying to compile the entire core, just a simple hello world module...
downside: im compiling under dev-c++ v4.9.9.2 in windows.

managed to get the errors down to a minimum, here they are:
[img][/img]img down till later


--edit--
looks like its missing
#include "packets/login.h"
because
#include "packets\login.h"
is correct?
still wierd because i fixed it with
#include "..\packets/login.h"

player.h
#include "..\packets/pdata.h"
#include "..\packets/ppk.h"
#include "..\packets/login.h"

defs.h
#include "sizes.h"
#include "..\packets/types.h"
#include "..\packets/simple.h"

core.h
#include "..\packets/login.h"


--edit2--
managed to compile a dll by commenting out 90% of the code, and raping my asss src files, and then got shot down by a
"
I <cmod> loading C module 'mine' from 'mine'
E <cmod> error in GetProcAddress: The specified procedure could not be found.
Unrecoverable error (5): Error in loading module 'mine:mine'
"
i know its named mine.dll, but where do i find the mine:whatever part?

<loader>file:modname

loader and file are easy to guess, but where do we find modname if we compile in windows?

--edit3--
followed steps in
http://wiki.minegoboom.com/index.php/Installing_New_Modules
made compile nice and easy, once i took out util from the project.

still cant find the mine:whatever though


--edit4--
would it matter if it was a c++ project in dev-c++ instead of a regular c one?
if it helps:
i can get a empty module to compile, but when i try to use
chat=mm->GetInterface(I_CHAT,ALLARENAS);
i get
invalid conversion from `void*' to `Ichat*'

END ASSS DAY 1
_________________
SSC Distension Owner
SSCU Trench Wars Developer


Last edited by Cheese on Sun Dec 21, 2008 5:06 pm, edited 4 times in total
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
cmdrpinksock
Novice


Age:44
Gender:Gender:Male
Joined: Dec 05 2008
Posts: 43
Location: Fort Worth
Offline

PostPosted: Fri Dec 19, 2008 10:53 am    Post subject: Reply to topic Reply with quote

Same here...
Back to top
View users profile Send private message Add User to Ignore List
CaptainPoopface
Newbie


Joined: Dec 16 2008
Posts: 17
Offline

PostPosted: Fri Dec 19, 2008 11:52 am    Post subject: Reply to topic Reply with quote

Yeah, I am also having the same problem, trying to compile various simple modules on a linux server.

I'm wondering if it's something funny in the makefile, or something about the 1.4.4 build, or just a stupid mistake...
Back to top
View users profile Send private message Add User to Ignore List
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Fri Dec 19, 2008 5:37 pm    Post subject: Reply to topic Reply with quote

there is no detailed information regarding the module compile process,
and even less information regarding the module loading process...

and until i can successfully compile -1- working module, all progress in my development comes to a halt.
and i have people waiting.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sat Dec 20, 2008 4:04 pm    Post subject: Reply to topic Reply with quote

Yes, it matters if it's a C++ project. Making it a C project should fix that void* to Ichat* issue (that's one of the few C++ backwards incompatibilities).

As for the #include issue, you probably don't have some include directory that it wants. I suggest adding the asss/src directory to the list of include directories.

What's your load function called? MM_mine? If it's MM_abcd, and part of mine.dll, you use mine:abcd to load it. The second half MUST be the same as the load function's name.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Sat Dec 20, 2008 5:05 pm    Post subject: Reply to topic Reply with quote

ah, was wondering where the void* junk was coming from...

as for the include stuff, forget i said anything about it


so i switched the project over to C, but now i get core compile errors...
in config.h:
a bunch of 'syntax error before "ch"' errors
a ; and } error
2 'no type' errors

Code: Show/Hide

Compiler: Default compiler
Building Makefile: "\mymod\Makefile.win"
Executing  make...
make.exe -f "\mymod\Makefile.win" all
gcc.exe -c mine.c -o mine.o -I"include"  -I"/asss-1.4.4/src"  -I"/asss-1.4.4/src/include"  -I"/asss-1.4.4/windeps"  -DBUILDING_DLL=1 

In file included from /asss-1.4.4/src/include/asss.h:23,
                 from mine.c:1:
/asss-1.4.4/src/include/config.h:84: error: syntax error before "ch"
/asss-1.4.4/src/include/config.h:97: error: syntax error before "ch"
/asss-1.4.4/src/include/config.h:115: error: syntax error before "ch"
/asss-1.4.4/src/include/config.h:122: error: syntax error before "ch"
/asss-1.4.4/src/include/config.h:154: warning: no semicolon at end of struct or union
/asss-1.4.4/src/include/config.h:161: error: syntax error before "ch"
/asss-1.4.4/src/include/config.h:168: error: syntax error before "ch"
/asss-1.4.4/src/include/config.h:178: error: syntax error before '*' token
/asss-1.4.4/src/include/config.h:178: error: syntax error before "ch"
/asss-1.4.4/src/include/config.h:178: error: `ConfigHandle' declared as function returning a function
/asss-1.4.4/src/include/config.h:178: warning: data definition has no type or storage class
/asss-1.4.4/src/include/config.h:201: error: syntax error before '}' token
/asss-1.4.4/src/include/config.h:201: warning: data definition has no type or storage class

make.exe: *** [mine.o] Error 1

Execution terminated
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
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: 54 page(s) served in previous 5 minutes.

phpBB Created this page in 0.476764 seconds : 30 queries executed (94.0%): GZIP compression disabled