VaultNetwork.net Vault Network Boards
Author Topic: Visual Basic 6 help again [Locked]
KhaanVrenn  1 star
Posts: 50
Registered:
Ok, so I've fixed all of the AC Constants issues in LTx's Darkside Filter, and all items are being correctly identified.. making great progress there!

However, I've run into a snag concerning adding Void Magic... there is this bit of code inside of Utils.bs in the source Engine folder:


Quote:

Public Function MagicSchoolToSkillId(ByVal iMagicSchool As Integer) As Long
Dim lRet As Long

Select Case iMagicSchool
Case SCHOOL_CREATURE
lRet = eSkillCreatureEnchantment
Case SCHOOL_ITEM
lRet = eSkillItemEnchantment
Case SCHOOL_WAR
lRet = eSkillWarMagic
Case SCHOOL_LIFE
lRet = eSkillLifeMagic
Case SCHOOL_VOID
lRet = eSkillVoidMagic
Case Else
PrintErrorMessage "MagicSchoolToSkillId: unknown magic school " & iMagicSchool
lRet = eSkillCreatureEnchantment
End Select

MagicSchoolToSkillId = lRet
End Function



Sorry for the loss of formatting... anyways, on compile, I get a 'variable not defined' error for eSkillVoidMagic, so I tried back-tracing any of the other schools to see where they are defined. There is nothing, and I'm using a very robust text search utility. I'm stumped. = |

There is a LTEngine_Compatibility.dll file (and similar compatibility dll's in the other source folders), and they are required references for each compile job. Could these eSkillxxx variables be defined in there? What are these compatibility files? Googling isn't getting me much <3...

halp?
-Eps  3 stars
Title: I Love Boobies. And Butts, too!
Posts: 771
Registered: 2007-5-30 21:33:21
eww vb6

 

-----signature-----
#dnn #og-ac http://tinyurl.com/ACDTChat
Fastest 1-275 in AC history.
Plugin Users: 100+
Buy Plugins Relogger, ValSalv, and AutoVendor(route trigger): http://bit.ly/ACaCAl
[Trade] +Envoy Sparker says, "Rep check: Eps Levelin, PST."
Zegeger  1 star
Posts: 93
Registered: 2001-4-27 18:20:56
Perhaps DecalFilters.eSkillID.eSkillVoidMagic

 

-----signature-----
Zegeger - HG - 246 - Axe
AgentZ - http://decal.zegeger.net
"Ambition is a poor excuse for not having sense enough to be lazy." - Edgar Bergen
"Imagination is more important then knowledge." - Albert Einstein
KhaanVrenn  1 star
Posts: 50
Registered:
You sir, are a genius = ]

Except, I have no idea how to proceed. First off, I should have clarified that the Void Magic ELSE clause was added by me.. in case that didn't make sense.

Anyways, looking at eSkillCreatureEnchantment, for example, and searching all scripts came up empty. That is the only place it is ever referenced, so if it wasn't DIM'd somewhere, why isn't it throwing an undefined hissy? The answer may be in your answer... using the VB Object Browser and viewing the objects associated with DecalFilter eSkillID, I can see all the eSkill(s), but all of the new ones aren't there, such as Light Weapon, Heavy Weapon, etc., and also eSkillVoidMagic is missing. So is the connection to DecalFilter initializing the 4 schools that are there, so they don't throw errors? If that's the answer, then how do I 'add' this to the DecalFilter?

Curiously, I added the new skills (including Void Magic) to the Darkside Filter eSkillID ENUM section, and they are working nicely... Nether wands are now correctly ID'd, as well as all the weapon wields. So when the Darkside Filter talks to DecalFilter, it sees the new skills, but my Object Browser in the VB 6 IDE does not see them... that has to be the clue... thanks for your comment = ]
KhaanVrenn  1 star
Posts: 50
Registered:
Resolved

Installed the newest Decal (2.9.6.5), and the Object Browser in VB6 immediately showed the eSkillVoidMagic available in Decal. Project compiled without error.

VaultNetwork.net is an independently operated community forum and is not affiliated with, endorsed by, or technically based on IGN, GameSpy, FilePlanet, GameStats, or the former IGN/GameSpy Vault Network.
References to VaultNetwork.net mean this site/domain. VNBoards-style presentation is a visual homage only. By using this site, you agree to the forum rules.