Rydo Posted December 20, 2012 Author Share Posted December 20, 2012 Hey there! well, I was working on a crafting system for my project and I came across an error with this code:```' Proficiencies smithySetPlayerSmithExp Index, Buffer.ReadLongTNSM = Buffer.ReadLongfrmMain.lblSmithExp.Caption = GetPlayerSmithExp(Index) & "/" & TNSM' Proficiencies alchemySetPlayerAlchemyExp Index, Buffer.ReadLongTNAL = Buffer.ReadLongfrmMain.lblAlchemyExp.Caption = GetPlayerAlchemyExp(Index) & "/" & TNAL' Proficiencies enchantSetPlayerEnchantsExp Index, Buffer.ReadLongTNEN = Buffer.ReadLongfrmMain.lblEnchantsExp.Caption = GetPlayerEnchantsExp(Index) & "/" & TNEN```I was expecting this error as I have not created these labels because the engine I use has a fully rendered GUI. I was wondering if someone could give me some help as to make this properly function. I use eclipse reborn ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)Keep in mind I'm still learning vb6 and my main coder is on **vacation**. Link to comment Share on other sites More sharing options...
Growlith1223 Posted December 20, 2012 Share Posted December 20, 2012 Make the variables required for this as Globals(Public As ) in modGlobals or whereverThen take OUT the lines that are using labels, and then in Render_Graphics, goto where it renders some text, or you can use DrawGUI, and use the RenderText and use the same text you wanted for the text Arg.If you're wanting it as labels, then just create the labels lol.Hope this Helps ![^_^](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/happy.png) Link to comment Share on other sites More sharing options...
Rydo Posted December 20, 2012 Author Share Posted December 20, 2012 The labels tell you how well you are doing with the stat, so I need them in it. I'm having trouble adding labels as the whole GUI is rendered ;/ Link to comment Share on other sites More sharing options...
Growlith1223 Posted December 20, 2012 Share Posted December 20, 2012 Well, you could just use a picturebox, add the labels, then move the picturebox wherever…OR go into Sub InitializeGUI, and set the labels to be at a certain place. Link to comment Share on other sites More sharing options...
Rydo Posted December 20, 2012 Author Share Posted December 20, 2012 I don't think you understand, there is no main.frm, everything is rendered, so there is no frm for me to add lbls or picture boxes to. Link to comment Share on other sites More sharing options...
Growlith1223 Posted December 20, 2012 Share Posted December 20, 2012 frmMain is the form that everything is rendered too. i do know what you are talking about…If you don't have that form then you're most likely not seeing it or you need to look to your right for all the files or are just missing that file. Link to comment Share on other sites More sharing options...
Rydo Posted December 20, 2012 Author Share Posted December 20, 2012 Woops, there is a frm main, but thats the admin pannel, I mean theres no frms for the actual game Link to comment Share on other sites More sharing options...
Growlith1223 Posted December 20, 2012 Share Posted December 20, 2012 frmMain is extended out. it's small for whatever reason Deathbeam decided to make the form start out small. look in sub Main for the form sizes.frmMain is the game screen. Link to comment Share on other sites More sharing options...
Rydo Posted December 20, 2012 Author Share Posted December 20, 2012 This code is there.```' set the main form size frmMain.Width = 12090 frmMain.height = 9420 ' show the main menu frmMain.Show ShowMenu HideGame``` Link to comment Share on other sites More sharing options...
Growlith1223 Posted December 20, 2012 Share Posted December 20, 2012 yep, that equals 800x600\. i can't rly remember how to convert twips to pixels but yea. just extend out the form(goto the frmMain and stretch it out) till the scale Width is 800 and the ScaleHeight is 600 and you will have your screen. and you can place anything as you please. Link to comment Share on other sites More sharing options...
Rydo Posted December 20, 2012 Author Share Posted December 20, 2012 Ive got to the point where it wont stretch any more, and no screen..? Link to comment Share on other sites More sharing options...
Growlith1223 Posted December 20, 2012 Share Posted December 20, 2012 because everything is rendered lol, there wouldn't BE anything on it except the admin panel, just add the labels and position them where you want it or whatever. Link to comment Share on other sites More sharing options...
Rydo Posted December 20, 2012 Author Share Posted December 20, 2012 Wow, im such a noob, I forgot it was all rendered lol. Link to comment Share on other sites More sharing options...
Growlith1223 Posted December 20, 2012 Share Posted December 20, 2012 lulz, it happens. Link to comment Share on other sites More sharing options...
Rydo Posted December 20, 2012 Author Share Posted December 20, 2012 That seemed to help ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png), I just placed the labels on it and put the code under the mana and health bar code (Until I made a new picframe with stats)But im getting a error saying "method or data member not found" and it highlights .chkGrid < this is something I never ever changed I believe Link to comment Share on other sites More sharing options...
Growlith1223 Posted December 20, 2012 Share Posted December 20, 2012 Did you add that checkbox? Link to comment Share on other sites More sharing options...
Rydo Posted December 20, 2012 Author Share Posted December 20, 2012 Yeah, I'm sure thats the checkbox for grid mode on the map editor, which came with eclipse reborn.. Link to comment Share on other sites More sharing options...
Growlith1223 Posted December 20, 2012 Share Posted December 20, 2012 check to see if it's there, if not, add it lol Link to comment Share on other sites More sharing options...
Rydo Posted December 20, 2012 Author Share Posted December 20, 2012 omg now it says variable not defined for NumItem```Private Sub Form_Load() ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo ErrorHandler scrlPic.Max = [b]NumItems[/b] scrlAnim.Max = MAX_ANIMATIONS scrlPaperdoll.Max = NumPaperdolls ' Error handler Exit SubErrorHandler: HandleError "Form_Load", "frmEditor_Item", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit SubEnd Sub``` Link to comment Share on other sites More sharing options...
Growlith1223 Posted December 20, 2012 Share Posted December 20, 2012 xD replace all numItems with Count_ItemsI think it was called Count_Items, look in the modRendering or something like that. Link to comment Share on other sites More sharing options...
Rydo Posted December 20, 2012 Author Share Posted December 20, 2012 Can't find a Count_Items, would it be MAX_ITEMS perhaps? Link to comment Share on other sites More sharing options...
Growlith1223 Posted December 20, 2012 Share Posted December 20, 2012 no, depending on what that error is from…if it's from the frmEditor_Items, then no. look for a sub, i think it's in the clsDirectX8 or whater but there should be a sub there that counts everything. look for that sub, it will have a bunch of```Do While```look for the one for the items.if it's what im thinking of, it's to do with the Sprite for the item so it would have to be because of that…also try looking in the modGlobals as well. Link to comment Share on other sites More sharing options...
Rydo Posted December 20, 2012 Author Share Posted December 20, 2012 Ok so it was Count_Item < no s ;D Link to comment Share on other sites More sharing options...
Rydo Posted December 20, 2012 Author Share Posted December 20, 2012 Yeah so now theres a problem compiling with Call EditorItem_BltPaperdoll and it says sub or function not defined Link to comment Share on other sites More sharing options...
Growlith1223 Posted December 20, 2012 Share Posted December 20, 2012 check to see if that sub exists, also check to see if it's in the cls file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now