Server Help

ASSS Questions - yet more module compile issues

Cheese - Fri Dec 19, 2008 1:18 am
Post subject: yet more module compile issues
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
cmdrpinksock - Fri Dec 19, 2008 10:53 am
Post subject:
Same here...
CaptainPoopface - Fri Dec 19, 2008 11:52 am
Post subject:
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...
Cheese - Fri Dec 19, 2008 5:37 pm
Post subject:
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.
Dr Brain - Sat Dec 20, 2008 4:04 pm
Post subject:
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.
Cheese - Sat Dec 20, 2008 5:05 pm
Post subject:
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

All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group