escfoe2
-
Posts
354 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Posts posted by escfoe2
-
-
Honestly, there isn't that much code there. The page is simply taken up by what he's telling you to replace. Half the code he's replacing has more lines of code than what it's being replaced with.
Sicarii, It could definitely be done better than that. Part of your learning process should include revising this to be more efficient. Even though it works, make it work better.
Also, declare a variable to hold the values for
* GetPlayerBankItemNum(Index, BankSlot)
* GetPlayerInvItemValue(Index, i)
* And anything similar.
You use them so damn much. You'd be surprised how much shorter your code would be without so many unnecessary retrievals like that..
Look at it this way, your friend is a pothead. You're telling him his name over and over again and he simply doesn't remember.
Take a sticky note with his name on it and attach it to his forehead. Now anytime he needs it, it's right there. No need for you to keep telling him.
Granted, I don't always do things the most efficient way possible when I'm working on my own projects, and that's okay, but when it comes to something you're presenting to someone else, you need to strive to make it the best you can. Always. I have faith in you. ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)
You did a very good job for a novice. With some more practice and experience, you'll be working with the big boys in no time. -
> How to change " [background=rgb(248, 248, 248)]frmMain.lblPVPplayer.Caption = "%% Player" "[/background] To Player Opponent Name?
[background=rgb(248, 248, 248)]frmMain.lblPVPplayer.Caption = [/background]GetPlayerName(Index of the Opponent)
Basically change
```
Sub HandlePvpWindow (ByVal Index As Long, ByRef Data () As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)
'If debug mode, then handle error exit in October
If Options.Debug = 1 Then On Error GoTo ErrorHandler
frmMain.lblPVPplayer.Caption = "%% Player"
frmMain.picPVPRequest.Visible = True
'Error handler
Exit Sub
ErrorHandler:
HandleError "HandlePvpWindow", "modHandleData", Err.Number, Err.Description, Err.Source, Err.HelpContext
Err.Clear
Exit Sub
End Sub
```
to
```
Sub HandlePvpWindow (ByVal Index As Long, ByRef Data () As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)
Dim buffer as clsBuffer
Dim Inviter as Byte
Set Buffer = New clsBuffer
Buffer.WriteBytes Data()
Inviter = Buffer.ReadByte
'If debug mode, then handle error exit in October
If Options.Debug = 1 Then On Error GoTo ErrorHandler
frmMain.lblPVPplayer.Caption = GetPlayerName(Inviter)
frmMain.picPVPRequest.Visible = True
'Error handler
Exit Sub
ErrorHandler:
HandleError "HandlePvpWindow", "modHandleData", Err.Number, Err.Description, Err.Source, Err.HelpContext
Err.Clear
Exit Sub
End Sub
```
That ought to do it. I didn't use my compiler to edit that. I free handed it, so I apologize if there's any misspellings. -
> If you mean chat rooms with the same name then, yep you were right. It never checks chat rooms with similar names. I have added a loop that checks all the chat room names with the name given for the parameter.
Damn I good ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)
Glad I could help lol -
Making a free MMORPG Maker cost money?
Ripping the free right out of the name eh?
It was given to you for nothing.
Personally, I am opposed to this decision.
You better make sure your shit is the best of the best before you attempt that.
Just stating my opinion. I'm sorry if I offended you. -
> Thank you bro.
>
> I just added
>
> PlayMusic lstJuke.List(lstJuke.ListIndex) & ".mp3"
>
> And worked.
>
> Like that:
>
> ```
>
> Private Sub cmdPlay_Click()
>
> If Options.Music = 1 Then
>
> StopMusic
>
> PlayMusic lstJuke.List(lstJuke.ListIndex) & ".mid"
>
> PlayMusic lstJuke.List(lstJuke.ListIndex) & ".mp3"
>
> Else
>
> StopMusic
>
> End If
>
> End Sub
>
> ```
What ever works for you bud. Out of pure experience, I see what you have posing a possible issue. Try making two files with the same name but different extensions and test it. See what happens for me if you would.
What works right now, may not always work in the future. It's never a bad idea to test every possible outcome you can think of. -
> I'll update the tutorial and add that in when I can, thanks. Right now working on stuff for EVB development.
Make it how you want it. I was only offering a suggestion ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) -
GUI interface changes are always eye-catchers; good or bad.
I like your work. Very nice. -
> But it isn't looking very professional ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)
The customer is always right. ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)
I dropped the size a bit. lol -
> Bigger font, better results i assume? lol
Just to grab people's attention. It obviously worked ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png) -
**UPDATED TODAY!!!** **April 22, 2013**
-
Great idea Matthew. Simple and well explained. Way to go.
-
You're the man. Great job. I will be referencing this and converting it to DX8 for TFF (The Final Frontier)
-
Nicely done!
I'm doing something very similar with my engine. Good to see I'm not the only with great ideas XD (Wizzy gave me the idea lol) -
Thank you for sharing this with others… Your contribution is appreciated.
Another idea for you, that I'm doing with my base, is to have an option in the map properties setting whether or not to drop the items on death. -
Does this have a check list to make sure duplicate chat rooms aren't created. If you join chats based on the name, it would be hard to find the right one if you have more than one of the same. Obviously you understand. It doesn't seem like
This:
```
If Not ChatRoom(i).index = vbNull Then
```
Would cover it..
Otherwise, very good presentation and I give you a B+ overall performance. ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) -
Well Marshy Dearest, you can have it say something along the lines of TimeSpentonEclipse since DateYouAddedTheCode.
Ex. 49.7 hrs. since 4/15/2013
I think this will help with some of the "time lost" controversy. ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) -
> Forgot to tell that I already fixed the problem, it wasn't that piece of code. ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)
>
> But thanks anyway.
Oh dear god you're one of THEM… lol
It might not be a bad idea to contribute back to the community by telling us what the problem was and how you fixed it. -
Well, what engine are you using for starters? Also, include which version of DirectX you are using to simplify finding an answer to your problem.
Lastly, if you made any changes from the stock code, it would be best to provide a copy of the original code to compare. I'll find your problem and tell you what you need to do to fix it. -
Did you create the variable to define [background=rgb(248, 248, 248)]ITEM_TYPE_GLOVES [/background][background=rgb(248, 248, 248)]ITEM_TYPE_PANTS [/background]and [background=rgb(248, 248, 248)]ITEM_TYPE_SHOES [/background]?
Such as:
Public Const ITEM_TYPE_GLOVES as Byte = 6 <–--- Example. -
The tutorial does not include the actual PlayMidi sub from what I see so this is a blind statement. From what I gather, there's only one place you see ".mid".
Change that one line of code to:
```
Dim Path as String
Path = lstJuke.List(lstJuke.ListIndex & ".mid"
If FileExist(Path) Then
PlayMidi Path
Else
Path = lstJuke.List(lstJuke.ListIndex & ".mp3"
PlayMidi Path
End If
```
Now this is untested, but the logic is correct compared to the information in the link you provided. -
There should be a tutorial for Evil Bunnie's chat rendering in the Tutorials section. I'll find you a link when I can. Just wanted to let you know about it and that it's an option like Damian mentioned.
-
> Once again, I'll filter through the topics. Thanks for being so helpful Escfoe!
Well you're welcome. I think you did a hell of a job last time you went through. Either that, or people have started to achieve an acceptable level of common sense. I feel that it shouldn't been anyone else's responsibility to do this but the topic owners themselves. Thanks though to you for handling it. -
Did Abhi2011 fix your problem? If so, please mark this topic resolved.
I'm getting tired of trying to help those who don't need it… ![:angry:](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/angry.png)
Thanks.
By the way, There seems to be something wrong with the command code. It might not be checking the input properly. I'd say Abhi2011 gave a quick fix, but it's likely that the problem will arise again. -
If you want to use something like this, you have to put it in to the game loop so it constantly updates the background of the chat box. Otherwise, this will set the chat box transparent and when you move, the background will not move with it. Now when you do this successfully, you'll notice just how awful of an idea this is in DX7 by your FPS. Good luck.
Designing GUI ?
in Q & A
Posted
From my research, it seems to have everything you need. The only peak of interest is that its headliner is "Animation Graphic Editor".
This means nothing as long as it can do more than animations.