Jump to content

Help with a script


Auntie Mangos

Recommended Posts

Did you do :

automake src/bindings/ScriptDev2/Makefile

?

Then the error says "undefined reference to `AddSC_CopperToGold()'"

=> CopperToGold

You wrote "AddSC_coppertogold()". Try with "AddSC_CopperToGold()"

I tried both ways with CopperToGold and wit coppertogold, renamed all the scripts.. i used this tutorial http://getmangos.eu/community/showthread.php?7839-GUIDE-Ubuntu-Debian-CentOS-RHEL-Install-Guide

when does you're command come in place.. (automake src/bindings/ScriptDev2/Makefile) because i didn't used the command..

Thx in advance..

Link to comment
Share on other sites

  • 40 years later...

Greetings,

Is there anyone that has this script working in rev 9946..

http://www.scriptdev2.com/isle-masters-complete-t5188.html

I getting an error with CopperToGold.cpp..

this commands are going good..

1: autoreconf --install --force;mkdir objdir;cd objdir;

2: ../configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --enable-ra --datadir=/opt/mangos

3: make (here i get the error)

error :

../bindings/ScriptDev2/.libs/libmangosscript.so: undefined reference to `AddSC_CopperToGold()'

collect2: ld returned 1 exit status

make[3]: *** [mangos-worldd] Error 1

Thx in advance

Link to comment
Share on other sites

Did you add it to Makefile.am and put CopperToGold.cpp in the right place before running the commands?

I added the files to ../mangos/src/bindings/scriptdev2/scripts/custom/isleofmasters

1: coppertogold.cpp

2: isleofmasters.cpp

3: proffesionmaster.cpp

4: telemaster.cpp

5: zenmaster.cpp

Then edited (gedit) scriptloader.cpp in ../mangos/src/bindings/scriptdev2/system

//custom

extern void AddSC_coppertogold();

extern void AddSC_isleofmasters();

extern void AddSC_professionmaster();

extern void AddSC_teleportmaster();

extern void AddSC_zenmaster();

and

//custom

AddSC_coppertogold();

AddSC_isleofmasters();

AddSC_professionmaster();

AddSC_teleportmaster();

AddSC_zenmaster();

Then i edited makefile.am in ../mangos/src/bindings/scriptdev2

scripts/custom/isleofmasters/coppertogold.cpp \\

scripts/custom/isleofmasters/isleofmasters.cpp \\

scripts/custom/isleofmasters/professionmaster.cpp \\

scripts/custom/isleofmasters/teleportmaster.cpp \\

scripts/custom/isleofmasters/zenmaster.cpp \\

and then i try to build.. but no luck.. what did i do wrong..

Thx..

Link to comment
Share on other sites

Oh wait, you are doing it wrong. You aren't supposed to add anything into ScriptLoader.cpp for CopperToGold. You are just supposed to put it in the Makefile.am.

Wauw... Well gonna try.. I'm getting nuts of this one.. Just installed everything on a windows 2008 server :) Will let ya now..

MAiki

Link to comment
Share on other sites

Oh wait, you are doing it wrong. You aren't supposed to add anything into ScriptLoader.cpp for CopperToGold. You are just supposed to put it in the Makefile.am.

You're the best.. It worked :) Thx for all the great help...

MAiki

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use