Mirage Source

Free ORPG making software.
It is currently Thu Mar 28, 2024 11:57 am

All times are UTC


Forum rules


Make sure your tutorials are kept up to date with the latest MS4 releases.



Post new topic Reply to topic  [ 1181 posts ]  Go to page 1, 2, 3, 4, 5 ... 48  Next
Author Message
PostPosted: Sat Jul 25, 2009 5:10 am 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
Mirage Basics: Part 1 - Setting up a server

This tutorial is the first part in a series of tutorials walking you through how to set up Mirage and get a game online and working.

Mirage Basics: Part 1 - Setting up a server: http://web.miragesource.com/forums/viewtopic.php?f=124&t=6042

This tutorial will do the following:

  • 1.0 Help you set up Visual Basic and get the latest copy of Mirage Source.
  • 2.0 Help you change the IP of the client and set up port forwarding.
  • 3.0 Help you package up your game and get your friends to connect and play.

1.0: Setting up Visual Basic and loading up Mirage's source.

First of all, you need a copy of Visual Basic 6.0. This is the programming language Mirage Source uses. You need the official IDE to be able to work with Visual Basic 6.0. Microsoft no longer developers or publishes this software, and as thus it can be considered abandonware, as the only places you can purchase this software is at junk markets and eBay.

Download: http://rapidshare.com/files/42921667/veebeesix.rar.html

Now, you need a copy of Mirage Source. The latest version is recommended.

Download: http://web.miragesource.com/forums/viewtopic.php?f=149&t=5584&start=0

Install Visual Basic 6.0, restart your computer, then unrar your copy of Mirage Source.

You should now have access to the Client's data and source files, as well as the Server's data and source files.

If you go into the server folder, you should see a few folders and Server.vbp. This is a Visual Basic 6.0 Project File. This stores all the information about the project, as well as links to all the forms, modules and classes which are used in the program. Loading this file in Visual Basic 6.0 should load up like this.

Image

Now, we really don't need to need to edit this source right now. First, we want to create the server's .exe file, which will load up the server. To do this, go to 'File -> Make Server.exe'.

Image

Doing the same with the Client's .vbp file will give you two parts of Mirage. The server, which you should keep and run on your own computer, and the client, which anyone who wants to play the game needs a copy of.

2.0: Changing the Client's IP, and port forwarding.

For players to connect to your server, you need to have it running, so load it up!

Image

Now, you need to put your IP into the client so it knows which computer to connect to. To do so, we're going to load up the Client.vbp file. Do so now, and press 'Ctrl + R'. Once you've done this, you'll see a 'Project Explorer' panel on the far right hand side of the IDE. Expand all the nodes, and double click 'modConstants.bas'.

Image

This is the line we're looking at:

Code:
Public Const GAME_IP As String = "78.86.67.23" ' "localhost"


You want to replace that IP address with your own external. To find this, visit: http://www.ipchicken.com

Once you've done this, re-compile your Client by going to 'File -> Make Client.exe'

The client will now connect to your network and try and send and receive data with your server. However, you may need to set up your router so the port is forwarded to your computer.

This isn't a standardised operation, however. You can find all the information you need at: http://www.portforward.com

Go to the router's page, find your router's make & model, then follow the instructions. Mirage uses Port 7000 by default so that is the port you should forward.

Once you've done this, other players will be able to connect to your game!

3.0: How to package the client.

There are several popular ways of packaging up a client to send around to players. The most popular is to simply .rar or .zip up the files of the client and upload it to a website so people can download.

One of the more versatile options is to create self-extracting installer. Not only will this give you access to the computer's registry if you need to save any information, but you can also ship the required run-time files and have them automatically copied into the SYSTEM32 folder, and COM registered.

Let's not get ahead of ourselves, though. I'm going to go to the client folder, and .RAR these folders/files:

gfx
logs
maps
music
sfx
Client.exe

You shoud never send these files:

src
Mirage.vbp

These files are the source code of your game, and you generally don't want people access your programming.

Now, you can send this .RAR to anyone, and they'll be able to load up the .exe file and connect to your game!

Image

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
PostPosted: Wed Sep 02, 2009 3:00 pm 
Offline
Regular
User avatar

Joined: Tue Jul 21, 2009 3:36 pm
Posts: 78
When i clicked on create server.exe, a message popped up that said..
"compile error:
Method of data member not found"

keep in mind robin (if you naswer this) im not doing this on my crappy computer like i tried with SD.. :roll:

_________________
Image


Top
 Profile  
 
PostPosted: Wed Sep 02, 2009 4:40 pm 
Offline
Pro

Joined: Mon May 29, 2006 2:58 pm
Posts: 370
What does it highlight?

_________________
Image


Top
 Profile  
 
PostPosted: Wed Sep 02, 2009 7:05 pm 
Offline
Regular
User avatar

Joined: Tue Jul 21, 2009 3:36 pm
Posts: 78
Code:
Public Function GetPlayerIP(ByVal Index As Long) As String
    GetPlayerIP = frmServer.Socket(Index).RemoteHostIP
End Function

it highlights ".Socket"

_________________
Image


Top
 Profile  
 
PostPosted: Thu Sep 03, 2009 5:29 am 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
You probably need to register a DLL.

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
PostPosted: Sat Sep 05, 2009 1:04 am 
Offline
Regular
User avatar

Joined: Tue Jul 21, 2009 3:36 pm
Posts: 78
whats a Dll? :oops:

_________________
Image


Top
 Profile  
 
PostPosted: Wed Dec 01, 2021 9:16 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruhttp://gageboard.ruhttp://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ru
http://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruhttp://magnetotelluricfield.ruhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruинфоhttp://semifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.rutaskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruсайтhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 1:54 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Econ


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 1:55 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
111.9


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 1:56 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Bett


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 1:57 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Bett


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 1:58 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Thom


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 1:59 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Lyne


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 2:01 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Taka


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 2:02 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Gera


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 2:03 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Robe


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 2:04 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Kraf


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 2:05 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Sony


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 2:06 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Fisk


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 2:07 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Snoo


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 2:08 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Xyla


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 2:09 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Hymn


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 2:11 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Manu


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 2:12 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
Galv


Top
 Profile  
 
PostPosted: Fri Jan 07, 2022 2:13 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456163
DISC


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1181 posts ]  Go to page 1, 2, 3, 4, 5 ... 48  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group