Cristian624 Posted October 21, 2012 Author Share Posted October 21, 2012 IS URGENT PLEASE!Hello, I am looking for this system to EO 2.3 Event system (normal), that when you're male Load a paperdoll of a folder, something likePaperdoll 4… for men/graphics/paperdolls/male/4.bmpPaperdoll 4... female/graphics/paperdolls/female/4.bmpwhat I want is that if you are male or female different load paperdolls, only that, please helpI NEED THIS SYSTEM TO EVENT SYSTEM EO 2.3 (NORMAL VERSION), if you help me come out in the credits of my game. Link to comment Share on other sites More sharing options...
abhi2011 Posted October 22, 2012 Share Posted October 22, 2012 Just add a new directory check and it will work. To check if it is male/female paperdoll add some boolean to ItemRec or if there is a PaperDollrec to it. Link to comment Share on other sites More sharing options...
Cristian624 Posted October 22, 2012 Author Share Posted October 22, 2012 can you put the code here bro? ^^ i am new in vb ;/ regards ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png) and thank you. Link to comment Share on other sites More sharing options...
abhi2011 Posted October 23, 2012 Share Posted October 23, 2012 I will do ASAP. I would have to check through codes. To make the complete thing. Link to comment Share on other sites More sharing options...
abhi2011 Posted October 23, 2012 Share Posted October 23, 2012 Finished it. But I haven't done the paperdoll wearing part so don't try 2 wear them cause it will crash. I will finish it soon.find```Paperdoll As Long```modTypes in server+clientand underneath add```PaperDollMale As Boolean```in frmItemEditor make something like this,![](http://i.imgur.com/P0NXq.png)Caption = Female?Name = chkDollSexGo to the forms code view (Project explorer -> form right click code)and add thisPrivate Sub chkDollSex_Click()If chkDollSex.Value = 0 ThenItem(EditorIndex).PaperDollMale = FalseElsechkDollSex.Value = 1End IfEnd Subin modDatabase client side find this sub```Public Sub CheckPaperdolls()```and replace the sub with this```Public Sub CheckPaperdolls()Dim i As LongDim x As Long' If debug mode, handle error then exit outIf Options.Debug = 1 Then On Error GoTo errorhandleri = 1x = 1While FileExist(GFX_PATH & "paperdolls\male\" & i & GFX_EXT)NumPaperdollsMale = NumPaperdollsMale + 1i = i + 1WendWhile FileExist(GFX_PATH & "paperdolls\female\" & i & GFX_EXT)NumPaperdollsFemale = NumPaperdollsFemale + 1x = x + 1WendNumPaperDolls = NumPaperdollsMale + NumPaperdollsFemaleIf NumPaperDolls = 0 Then Exit SubReDim DDS_Paperdoll(1 To NumPaperDolls)ReDim DDSD_Paperdoll(1 To NumPaperDolls)ReDim PaperdollTimer(1 To NumPaperDolls)' Error handlerExit Suberrorhandler:HandleError "CheckPaperdolls", "modDatabase", Err.Number, Err.Description, Err.Source, Err.HelpContextErr.ClearExit SubEnd Sub```In modDirectDraw7 find the following sub```editoritem_bltPaperdoll```Replace the sub with this```Public Sub EditorItem_BltPaperdoll()Dim Sprite As LongDim sRECT As DxVBLib.RECTDim dRECT As DxVBLib.RECT' If debug mode, handle error then exit outIf Options.Debug = 1 Then On Error GoTo errorhandlerfrmEditor_Item.picPaperdoll.ClsSprite = frmEditor_Item.scrlPaperdoll.Value If Sprite < 1 Or Sprite > NumPaperDolls Then frmEditor_Item.picPaperdoll.Cls Exit SubEnd IfPaperdollTimer(Sprite) = GetTickCount + SurfaceTimerMax If DDS_Paperdoll(Sprite) Is Nothing Then If frmEditor_Item.chkDollSex = False Then Call InitDDSurf("paperdolls\male\" & Sprite, DDSD_Paperdoll(Sprite), DDS_Paperdoll(Sprite)) Else Call InitDDSurf("paperdolls\female\" & Sprite, DDSD_Paperdoll(Sprite), DDS_Paperdoll(Sprite)) End IfEnd If' rect for sourcesRECT.top = 0sRECT.Bottom = DDSD_Paperdoll(Sprite).lHeightsRECT.Left = 0sRECT.Right = DDSD_Paperdoll(Sprite).lWidth' same for destination as sourcedRECT = sRECTCall Engine_BltToDC(DDS_Paperdoll(Sprite), sRECT, dRECT, frmEditor_Item.picPaperdoll)' Error handlerExit Suberrorhandler:HandleError "EditorItem_BltPaperdoll", "modDirectDraw7", Err.Number, Err.Description, Err.Source, Err.HelpContextErr.ClearExit SubEnd Sub```Still in the module find```Public NumPaperDolls As Long```below it add```Public NumPaperdollsMale As LongPublic NumPaperdollsFemale As Long```Thats all there is.I will update the tutorial when I finish the wearing part which will be soon. Maybe an hour or so. And also delete all your items or convert them. Link to comment Share on other sites More sharing options...
or3o Posted October 23, 2012 Share Posted October 23, 2012 wouldnt you not need to add any kind of boolean if you just set the items to have one paperdoll but automatically display a different one if the character is a female? it seems like it would be as easy as if player (index).poontang = 1 than the paperdoll would be loaded from a different subdirectory? i dont see why you would need to add anything to the item editor.shouldnt you just make it load from both files and then choose what paperdoll it uses based on the players gender? then you wouldnt need to edit it item editor or add that boolean, seems like it would cut the code down considerably. Link to comment Share on other sites More sharing options...
abhi2011 Posted October 23, 2012 Share Posted October 23, 2012 I added code to the editor so that i can be easily classified if that is what you meant. And yes it would be better just adding a gender to the item that chekcs whether the player is a male or a female. Link to comment Share on other sites More sharing options...
Cristian624 Posted October 23, 2012 Author Share Posted October 23, 2012 What that code is this?, Example: if you are male and use the item 5 the item gets paperdoll 7.bmp from the folder /paperdolls/male/7.bmp, and if you're female and you use the same item (item 5) becomes the 7.bmp from the other folder /paperdolls/female/7.bmp, depending on your poontang … regards!!! ^^ Link to comment Share on other sites More sharing options...
abhi2011 Posted October 23, 2012 Share Posted October 23, 2012 Thats what I did, but in a diffrent way. I will have to make some edits though. Like gender determination. I will release a tut for it rather than to the Q&A board. Link to comment Share on other sites More sharing options...
Cristian624 Posted October 23, 2012 Author Share Posted October 23, 2012 > Thats what I did, but in a diffrent way. I will have to make some edits though. Like gender determination. I will release a tut for it rather than to the Q&A board.Ok Bro, but i only need if you use for example Ninja armour if you are male gets /paperdolls/male/8.bmp but If you are female and use the same item (paperdoll) load /paperdolls/female/8.bmp, If you can make some addons, add more, but now I dont need more, I think…Regards Bro!!! GO GO GO!! GOTO FINISH THE SYSTEM!!! I NEED THIS!!! Link to comment Share on other sites More sharing options...
or3o Posted October 23, 2012 Share Posted October 23, 2012 i did something like this but i didnt change the folders, i just made 1 the male sword then 2 the female version and so on, that way in draw paperdoll i just added a line that saidif player(index).poontang = female thenpaperdoll = item(index)=paperdoll + 1end if Link to comment Share on other sites More sharing options...
Cristian624 Posted October 23, 2012 Author Share Posted October 23, 2012 hmmmm i go to try this system if it work i use it^^ Link to comment Share on other sites More sharing options...
Cristian624 Posted October 23, 2012 Author Share Posted October 23, 2012 i think this code is for CS:DE not for Eo event system, i dont search Sub DrawPaperdoll. in the source (client) Oreo I'm using EO 2.3 event system please put here a little tutorial for put the system ^^ Regards!!!!! Link to comment Share on other sites More sharing options...
Cristian624 Posted October 24, 2012 Author Share Posted October 24, 2012 abhi i try your (updated) code and… dont found look I try to compile the Client (the first tip)![](http://imageshack.us/a/img822/1453/dibujoviv.png)here is the error code:```Public Sub EditorItem_BltPaperdoll()Dim Sprite As LongDim sRECT As DxVBLib.RECTDim dRECT As DxVBLib.RECT' If debug mode, handle error then exit outIf Options.Debug = 1 Then On Error GoTo errorhandlerfrmEditor_Item.picPaperdoll.ClsSprite = frmEditor_Item.scrlPaperdoll.Value If Sprite < 1 Or Sprite > NumPaperDolls Then frmEditor_Item.picPaperdoll.Cls Exit SubEnd IfPaperdollTimer(Sprite) = GetTickCount + SurfaceTimerMax If DDS_Paperdoll(Sprite) Is Nothing Then If frmEditor_Item.chkDollSex = False Then Call InitDDSurf("paperdolls\male\" & Sprite, DDSD_Paperdoll(Sprite), DDS_Paperdoll(Sprite)) Else Call InitDDSurf("paperdolls\female\" & Sprite, DDSD_Paperdoll(Sprite), DDS_Paperdoll(Sprite)) End IfEnd If' rect for source``` Link to comment Share on other sites More sharing options...
abhi2011 Posted October 24, 2012 Share Posted October 24, 2012 ```Sprite = frmEditor_Item.scrlPaperdoll.Value```Press enter after this```PaperdollTimer(Sprite) = GetTickCount + SurfaceTimerMax```Press enter after this Link to comment Share on other sites More sharing options...
Cristian624 Posted October 24, 2012 Author Share Posted October 24, 2012 yeah its solved but this system is not correctly work, i put the tick in the ''Female?'' in the Item editor of my game next i click save and next i re-open the item editor and the tick is not put in the item… and other bug if you put the tick in one item in the item editor the tick appears in all of the items - paperdolls... but next of clicking on save is not put the tickI TRY THE SYSTEM WITH MY CHAR BOY AND I USE AN MASK FOR EXAMPLE IN THE CHARACTER BOY (ME) THE MASK IS BLACK AND IN THE CHARACTER GIRL (ME TOO) I PUT IN /PAPERDOLLS/FEMALE/4.BMP THE MASK IN COLOUR PINK BUT THE MASK APPEARS IN THE OTHER CHARACTER (THE FEMALE CHARACTER) IN BLACK AND IN THIS CHARACTER NEED TO USE PINK MASK...SORRY FOR MY VERY VERY VERY VERY VERY BAD ENGLISH........... Link to comment Share on other sites More sharing options...
abhi2011 Posted October 25, 2012 Share Posted October 25, 2012 Just a few edits for the first problem. Hint = modGameEditorsI don't understand your second question. Link to comment Share on other sites More sharing options...
Cristian624 Posted October 25, 2012 Author Share Posted October 25, 2012 where I can put this?```Hint = modGameEditors``` Link to comment Share on other sites More sharing options...
Growlith1223 Posted October 25, 2012 Share Posted October 25, 2012 lawl he doesn't mean to put hint = modGameEditors, he means to you have to put something IN modGameEditors, look for ItemInit or something like that in that module Link to comment Share on other sites More sharing options...
Cristian624 Posted October 25, 2012 Author Share Posted October 25, 2012 aaa sorry, but i dont know how… help I'm noob in VB ;( Link to comment Share on other sites More sharing options...
Growlith1223 Posted October 25, 2012 Share Posted October 25, 2012 > frmEditor_Item.chkDollSex = Buffer.ReadBytei don't know if that will work or not Link to comment Share on other sites More sharing options...
Cristian624 Posted October 25, 2012 Author Share Posted October 25, 2012 No, don't work sorry man this code causes runtime 91… HELP Please!!! Link to comment Share on other sites More sharing options...
abhi2011 Posted October 26, 2012 Share Posted October 26, 2012 chkDollSex.value = item(editorindex).PaperdollMaleor something similar. Link to comment Share on other sites More sharing options...
Cristian624 Posted October 26, 2012 Author Share Posted October 26, 2012 this code is good? and where in ItemInit (mod GameEditors) i can put this code? …. Link to comment Share on other sites More sharing options...
abhi2011 Posted October 26, 2012 Share Posted October 26, 2012 Search sub ItemInit or something similar. 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