Jump to content

[TWO] Bunch of script errors when compiling


5even

Recommended Posts

Posted

Was going to work on scriptiing(or at least learning - first quest was gonna see if i can fix ESCORTING ERLAND), but before I got into that, wanted to compile to make sure everything is up to date.

Get tons of errors and will not compile (mangos compiles fine - it's the scriptdev i am having issues with). here are some of the 300+ errors that are coming up

\base\escort_ai.cpp(102): error C2039: 'type_flags' : is not a member of 'CreatureInfo'

1> J:\WOTLK.SERVER\_server.src\src\game\Creature.h(72) : see declaration of 'CreatureInfo'

boat load of these: (where "xxx" are various numbers)

.\scripts\eastern_kingdoms\karazhan\chess_event.cpp(xxx): error C2039: 'GetRecoveryTime' : is not a member of 'SpellEntry'

1> J:\WOTLK.SERVER\_server.src\src\game\DBCStructure.h(1610) : see declaration of 'SpellEntry'

some misc

.\scripts\kalimdor\felwood.cpp(123): error C2039: 'scale' : is not a member of 'CreatureInfo'

1> J:\WOTLK.SERVER\_server.src\src\game\Creature.h(72) : see declaration of 'CreatureInfo'

1>..\scripts\kalimdor\felwood.cpp(123): error C2660: 'Object::SetFloatValue' : function does not take 1 arguments

I do not want to list them all, as they are numerous. Sometimes when I see this many errors, there is usually a quick fix for it.

any suggestions I can try?

Posted

I repulled it all from scratch (as per wiki *again*)

mangos compiled fine - scripts?

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 3.

========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

is that me or mangos team?

the scripts are in the src/bindings

folder

i.e.

scr/bindings/scriptVC120.sln is the one i used.

same steps, same procedure and same folder structure

geesh!

EDIT:

RESOLVED

Posted

Yes. there were a few typos in the source, and name changes - that fixed it when corrected and compiled

example:

base\escort_ai.cpp(102): error C2039: 'type_flags' : is not a member of 'CreatureInfo'
1> J:\WOTLK.SERVER\_server.src\src\game\Creature.h(72 ) : see declaration of 'CreatureInfo'

was changed in the source to 'NpcFlags', after I read the error, I found that it was looking for variables from the creature_template, and the ones causing issues while compiling were simple camelCase errors, or either the DB or source code used a different name (Trinity source?) and clashed. So I fixed and pulled. Hopefully others came up with the same fix.

Archived

This topic is now archived and is 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