tutorial #1 Back to basics
By Renegade of Miragesource forums!
Ok this is back to basics for the new guys, how to get your game to look like yours!
Files to Edit Modtypes All forms Most Mods
forms to add None
Ok here goes (2/5 btw)
Client side:
'General constant
Search for that under it you'll find ALOT of the games information
' General constants Public Const GAME_NAME = "Eternia Online" 'your game name Public Const MAX_PLAYERS = 70 ' Max amount of players allowed to connect Public Const MAX_ITEMS = 255 ' Max amount of items you can make Public Const MAX_NPCS = 255 ' Max amount of Non playing Chars allowed to make Public Const MAX_INV = 50 ' Max items carried in backpack Public Const MAX_MAP_ITEMS = 20 ' Max amount of items allowed on a map Public Const MAX_MAP_NPCS = 5 ' Max amount of NPCs allowed on a map Public Const MAX_SHOPS = 255 ' Max amount of shops on a map Public Const MAX_PLAYER_SPELLS = 20 ' Max amount of player spells allowed on a player Public Const MAX_SPELLS = 255 ' Max spells allowed to make Public Const MAX_TRADES = 8 ' Max shop trades
The first thing to do is configure all of this to suit you REMEMBER ANYTHING DONE CLIENT SIDE MUST BE COPIED SERVER SIDE Mod types is properly the 2nd most important thing in your project so try not to mess it around to much if you don't know what your doing =)
Next is to give your game your GUI
For you GUI is can be as big as bold and as funny as you want I usually copy and paste my GUI into place its really easy to do =)
Next is putting your game name onto the actual game
In FrmMirage there is a label called
lblname
Change (in Properties) the name of it. Now to getting rid of all the "mirage online" around the place.
click on the form and on the properties tab scroll down until
Caption
and change it to what ever you want Remember to do it on all the forms.
Now to your custom messages e.g.
In modGameLogic (The most important Module)
Find
Sub MenuState(ByVal State As Long)
And change all the stuff in the "Text" thingies XD e.g
("Connected, sending new account information...")
Now find
Sub HandleKeypresses(ByVal KeyAscii As Integer)
This is one of the first things i done was to check this sub out explains so much
' Broadcast message If Mid(MyText, 1, 1) = "'" Then ChatText = Mid(MyText, 2, Len(MyText) - 1) If Len(Trim(ChatText)) > 0 Then Call BroadcastMsg(ChatText) End If MyText = "" Exit Sub End If
In this the 'text here is being used to send a global message to change this look at the part what goes "'" now add some spaces " ' " see in the quotes is the little ' I don't recommend adding the spaces in the "'" as players will have to have a space then ' then another space to talk XD
Changing this is a bad idea because then you will have to change the /help code and that takes time to get how you want =)
Next Changing your IP for your game
Before I explain how id considering doing the tutorial for IP configuration As that will be easier when you change server hosts In ModClientTCP you'll see
Sub TcpInit()
In there will be all the IP information you need. Server side there will be the port in the same place =)
Hmm what else is there for me to cover =/ How to add tutorials without f**king with you game!!
Well there are 3 steps Read Type it in Read it again
This concludes my tutorial on How to make your game yours =) ~ Renegade
Post anything wrong or anything else you want
------------- Eternia online, Coming soon to a movie i mean computer near you!
|