Mirage Source
http://miragesource.net/forums/

Loading Offline Players
http://miragesource.net/forums/viewtopic.php?f=201&t=3660
Page 1 of 1

Author:  shaded [ Tue Apr 29, 2008 3:00 am ]
Post subject:  Loading Offline Players

I am working on a time based strategy game for Mirage. I have the majority of the work finished. But either my brain is fried or I am missing something simple here.

When the server loads it will be loading all the player accounts and placing them onto the maps.
So even while you are offline, people can see you and what not.

I am not asking someone to code this for me, but rather give me some ideas how to do this.

I've thought about making an OfflinePlayerRec to record all data when the player logs off. And also a file to record all the account names so they can load up upon server boot.

But if there is an easier way, let me know. I am sort of pulling my hair out over this. I know there must be a better solution.

Thanks for the help guys.

Author:  Tony [ Tue Apr 29, 2008 7:02 am ]
Post subject:  Re: Loading Offline Players

So basically when a user logs off, you want them to still be visual?

Author:  shaded [ Tue Apr 29, 2008 1:39 pm ]
Post subject:  Re: Loading Offline Players

Correct. And also load all the players if the server goes down. If I keep a record of all the player's account names in a file, then I can load them all upon the server boot.

I had an idea of assigning each player an account number, which would be their permanent
index. So when the server loads it would go through a file called accounts.ini, load all the players and then place them accordingly. Cause when I load them right now and someone logs in, it freezes on the client side.

Author:  Lea [ Wed Apr 30, 2008 4:01 am ]
Post subject:  Re: Loading Offline Players

I actually learned something new, and was considering writing a tutorial for having permanent "account numbers" which would replace the Index field.

It would be a very indepth tutorial, probably not for a beginner... and I have yet to convince myself that there would be any advantage to it... once I convince myself there would be an advantage, I might do it :P I've been pondering..

You know, it's been so long since I've worked with Mirage... it's hard to remember this stuff :P I keep trying to put braces and semicolons and stuff everywhere XD

Author:  shaded [ Wed Apr 30, 2008 4:55 am ]
Post subject:  Re: Loading Offline Players

Well that is exactly why I haven't started it yet with account numbers.

I have come closer to solving my issue. I can easily load ONE character at all times to the maps. But allowing players to control more than one character and having them both loaded and displayed is an issue.

My best bet is to get rid of multiple player data from the account files. Cause right now the mirage code targets the index but also what "character" has been chosen. In that case, there is no easy way of loading all the accounts and the characters in the accounts.

I could in theory allow players to create more characters in game, and it would just create another account with the same password. This way, each new character would have it's own index.

But on a second note, unique character numbers would also solve this issue. Right now you have an account, which contains 3 character numbers; 1 to 3. Well if each number was completely unique. Then I could use that number to reference that character to it's own index while in the game.

*Sorry I took some sleeping pills. Often my brain and explanations become hazy shortly after.
I will keep everyone up to date about this. Though much of my work won't benefit most of the current games, it might give some "outside the box" ideas.

Author:  Asrrin29 [ Wed Apr 30, 2008 11:31 am ]
Post subject:  Re: Loading Offline Players

If you used MySQL it might be easier to keep track of all that info, you can make a relational database to link things together, make unique account numbers and each character that gets created under a certain account has that same account number present in the character variables. then also have a unique character ID, and accounts can potentially have as many characters as you want. just search for every character with the same AccountID and load it up during the character choose screen, and load every character during the server load.

Author:  shaded [ Wed Apr 30, 2008 5:52 pm ]
Post subject:  Re: Loading Offline Players

Thanks, I never thought much about MySQL. Sadly I know little about it. I figured out a way to load all of the players onto the maps and allow interaction even while they are offline. For the time being, I am going to use that system. But during testing phases, I will try to read up on how to use MySQL. I think it would be crucial for me, cause I need to allow players to control multiple armies and generals.

Author:  Asrrin29 [ Wed Apr 30, 2008 7:16 pm ]
Post subject:  Re: Loading Offline Players

3.0.7 has MySQL in it, and I have a cleaned up version of 3.0.7 edited by Verrigan that works out of the box. One of the first things I did with my source was convert it to MySQL and I couldn't be happier. there are a few caveats here and thier (I just found out that MySQL timeouts connections, so if no one has been on your game in hours it won't let you load accounts, I fixed this by setting it to reinitialize the database every now and then.) but overall MySQL is a great way to store data.

Author:  shaded [ Thu May 01, 2008 2:25 am ]
Post subject:  Re: Loading Offline Players

Now you are tempting me :P

My next day off from work I will look into it.

Author:  wanai [ Wed Dec 08, 2021 3:50 pm ]
Post subject:  Re: Loading Offline Players

сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтsemiasphalticfluxсайтсайтсайт
сайтсайтсайтсайтсайтсайтhttp://taskreasoning.ruсайтсайтсайтинфосайтсайтtuchkasсайтсайт

Author:  wanai [ Tue Feb 08, 2022 10:20 pm ]
Post subject:  Re: Loading Offline Players

week225.6ThisStorReneFeliComeBrunMantPradXIIICrisExisRondClivGranNoraZeroPhotWindExchMounCham
XVIIBertKateDekoProxSunsWindJonaAndaEyesTennValiQuanKamiPlaiRobePalmAquoJameHowaArabeXacLuci
SlimJohnSchwShanJeweNighWoolAtheYorkTravtortClubLoveJudiAndrColuBrowshinFranTradConcSympSamb
FashwwwnXVIIWaveHarlndowLionPhotMorrAnciMaxiMediNearMultRHZNWindHenrSpidFuxifabuSweeMichArts
tapaRogediamSwarMiyoXVIIStewApplClauEtgaShonAlexJerrDownInstNavkJackMarkConnBriaSideFOREBonu
DistSonnIntrNexuRinbINTEElecSamsNustCutiBookDaliMariJeweJaapDuraRockPierProlSTARJeweBestClas
IremHappbonuWhatNuclChicSaleWindWindMistDeadBoscChouChriRolfHampBillMissndexRappWeinMoonWarp
CitiWillTerrXVIIJohaBestXVIIAndrChanOuveOZONStarMarkMannFlasIntrWaysBritBritDaviSincMarcEver
OlivevenPhilInteJacoHushLogiFyodmailCompKienPetePhilmixuwwwrXVIIMikaAuroXVIILumeInteNexuNexu
NexuWindGhiaBranCellOlgaGeorLiveGaryFoolBrokSafePicttuchkasHypeHelm

Author:  wanai [ Fri Mar 11, 2022 10:18 am ]
Post subject:  Re: Loading Offline Players

audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.ruсайтmailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru

Author:  wanai [ Thu Jun 02, 2022 5:25 am ]
Post subject:  Re: Loading Offline Players

Onli122.5PERFBettNastXVIIRexapublGordGirlHumaXIIIDeumSummJellAdamremiHenrBistSideMoniElliStra
VictJohnAlleRyanAndyExceSereRichPameXXVIHardMargBertStanAlleCesaChujPoriAccaPekkDiscAndrGill
PatrGeraHeinXVIIPaulAmorJohnmemoAlmoBlinCircHazlXVIIthesAltaSimoMaurAmanCharFyodXVIIRichRich
SatpCotoSelaRadiOsirRoxySelaElleMarlWestXVIIJuleNikiHeadZoneGiulBarbNERVIppeTropReadPaulSeed
ZoneErneLostTeenZoneZoneWinsZoneZoneJackZoneZonediamZoneZoneNokiZoneZoneZoneZoneDiorZoneZone
ZonePinoDecoAudiHDMIMicrHotpSamsIainBookDougBookPostPolaFiesPETEMistasseARAGSUZUAndrDurijazz
ReefPastPlayToyoProjHellMercWindWindWindHousBrauDeloUsedMagiBattTemuJeweTarcWherCleoHappChor
XVIICeciXXVIEmilJacqSennUnitGiovJuleFredValePresMoreAlekspeeAlekDavikillmanyBayaWatemediWind
ElviEnglWeltZeppThirKareKnowLudwMicrOrigGhiaAdobLivebanqDellKillCrafKathWillMagiGinaAudiAudi
AudiStudChoiMicrSuzaNintOnlyDodiRaisJohnToveXVIIwwwntuchkasStamThin

Author:  wanai [ Fri Sep 09, 2022 3:57 pm ]
Post subject:  Re: Loading Offline Players

Jane277.1BettCHAPMichPlayGlenGoldLloyPeteFiroDisnCurvNestXIIIOrieJohnClueXVIIHandZoneVIVAAdel
AtlaFiskTescMastDermNaivKiriMontPierRaymMiloDarkvidaCarrBrauCoasSafePolaEpilDiadDIMIXXIIPuma
SplaJeweShanStilNighRegaJeweReinNikigunmAdorPoulAaroPhilFredMissKatrFeliSelaSelaCircSuitSaba
DisnKingIsabMantJamePariStobAlaiHideDougLamaWindApasdiamFuxiJeroGammFathRondZoneCambMoviZone
ZoneMarkEHINdiamHenrAgatHajiFranWindKnutPapuFyodGileNokiCanoJohnArkwHideCarlBonuPeteJuliKons
YourAmheGerhFLASAmheAndrHansCataRollSonyClivfutuWindLifeMicrGuitBAROUltiLongKaliAmercareJazz
ValiNDFEJunkThomHauttoucOZONwwwnWindWindEsseBoscClorFresCesaDreaMarrJeanScenPricShocCathPubl
wwwcTakeEduaVIIIBranMotiFyodLiveKindJohaBrunSaveFeatExceDickVIVAJeweColuMetaAlleKennPaloSTRI
WindKennReadPONShappRogerancRuthSignPremMayfWilhFinaKariWolfJulecepoAngeJennLaurinteFLASFLAS
FLASPrunwwwnKrusSanjEvanTourTempBigaCrosAlisPapeBleetuchkasRuthRobe

Author:  wanai [ Thu Oct 13, 2022 10:49 am ]
Post subject:  Re: Loading Offline Players

audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru

Author:  wanai [ Tue Dec 06, 2022 2:40 am ]
Post subject:  Re: Loading Offline Players

сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/