![]() |
Quest Editor Problem - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Quest Editor Problem (/showthread.php?tid=2417) |
Quest Editor Problem - addy - 02-12-2008 Well it feels like ive been posting alot now but im just a newbie ![]() Ive been trying to add a quest editor lately. I basically took whatever Item Editor had and duplicated and put in my own variables and changed names. I thought it would work then i test it out and i get this error that says: Code: Compile Error: heres the code i got for the Quest Editor Packet. It comes up that error. I mean i got no clue it says the sub right at the top. Its in the server side on ModHandleData Everyone is okay in that packet just when it comes to the quest(n).name=Parse(2) it says that error up top. Code: ' :::::::::::::::::::::: Re: Quest Editor Problem - addy - 02-12-2008 Nobody knows? Re: Quest Editor Problem - Anthony - 03-12-2008 Your Sub or Function that you are trying to call is not defined... What does it highlight? Re: Quest Editor Problem - addy - 03-12-2008 Code: ' Update the item It only highlights the first line about quest but thats because thats the first error it gets. Its pretty much the whole quest thing isnt defined. And it has the Sub thing at the top. Re: Quest Editor Problem - Forte - 03-12-2008 did you define all of them in QuestRec? Re: Quest Editor Problem - addy - 03-12-2008 You shouldnt have to. The variable is defining like a data thing. Re: Quest Editor Problem - Rian - 03-12-2008 addy Wrote:You shouldnt have to. The variable is defining like a data thing. lolwut. You seem so sure of yourself but your argument makes no sense. This is what Forte was talking about, and I'm willing to bet it's what you're missing: Code: Type QuestRec Re: Quest Editor Problem - addy - 03-12-2008 Nope that wasnt it. I tried it and i thought it was going to work but i guess not. Things i guess that MIGHT just help you. The server opens up and it works but that error only pops up when i turn on the game and try logging in. Then it stops the game and the server it just pauses. Then the .thing here at all its just the first part gets highlighted. Its just the Quest part not the (n).sayStart or whatever the case would be. Re: Quest Editor Problem - Matt - 03-12-2008 Public Quest as questrec Something like that maybe? Re: Quest Editor Problem - addy - 03-12-2008 Nope not it. I dont think its because its not defined so it shouldnt be that Questrec thing. Its because it doesnt think its in a Sub and its all alone. I think its the placing but im not sure. Hopefully someone will figure out or ill have to rewrite and write a thing from scratch Re: Quest Editor Problem - Matt - 04-12-2008 Public Map As MapRec That right there, is what allows you to do map.name and such. You need one for the questrec, otherwise you'll never get it to work. Your questrec is needed, first off, because you're trying to use a user defined type (UDT) and it has to be defined. Then, you have to define something else, AS that UDT, in order to use the UDT. Without that, it won't work. That's most likely your issue. Other examples: Public TempTile(0 To MAX_MAPX, 0 To MAX_MAPY) As TempTileRec Public Player(1 To MAX_PLAYERS) As PlayerRec Public Class() As ClassRec Public Item(1 To MAX_ITEMS) As ItemRec Public Npc(1 To MAX_NPCS) As NpcRec Public MapItem(1 To MAX_MAP_ITEMS) As MapItemRec Public MapNpc(1 To MAX_MAP_NPCS) As MapNpcRec Public Shop(1 To MAX_SHOPS) As ShopRec Public Spell(1 To MAX_SPELLS) As SpellRec Re: Quest Editor Problem - addy - 04-12-2008 Perfekt, i dont know how your always right ha. Well you got it thanks for everybody's help. Re: Quest Editor Problem - Matt - 04-12-2008 I'm hardly always right. Lol. Ask Lea and Robin. They both know. XD I just looked at your problem, looked at Rian's suggestion, and figured it out. ![]() |