Jump to content
  • 0

Compile Issues


Question

9 answers to this question

Recommended Posts

Posted (edited)

open src/map/mob.c and find:

#ifndef TXT_ONLY
if(db_use_sqldbs) {
 mob_read_sqldb();
 mob_read_sqlskilldb();
} else {
#endif /* TXT_ONLY */
 mob_readdb();
 mob_readskilldb();
}

replace with this and it should work:

see my other post, or better wait till someone can confirm that the replacement works.

[s]#ifndef TXT_ONLY

if(db_use_sqldbs) {

mob_read_sqldb();

mob_read_sqlskilldb();

}

else { /* TXT_ONLY */

mob_readdb();

mob_readskilldb();

}

#endif[/s]

[/code[/s]]

I´ve written a bugreport for this... hopefully i´m not that wrong... >.<

Edited by Gorowann
Posted (edited)

I shouldn´t post something code related when my kids are around....

the else statement will never trigger and the txt version will not call mob_readdb(). I have only quick looked and have gone wrong by only looking at the { }

that should be better, ...i hope...

#ifndef TXT_ONLY
 mob_read_sqldb();
 mob_read_sqlskilldb();
#else /* TXT_ONLY */
 mob_readdb();
 mob_readskilldb();
#endif

Edited by Gorowann
Posted

Weird, I just tested compiling latest RAthena release but I don't get any compile errors.

I'm using win7 x86 and VSC++ 2008.. :)

lol

read post #1

he said x64

x86 and x64 are different

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...