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

Don't load the map twice
http://web.miragesource.net/forums/viewtopic.php?f=210&t=108
Page 1 of 1

Author:  Misunderstood [ Sun Jun 04, 2006 11:34 pm ]
Post subject:  Don't load the map twice

eh, its somewhat of a bugfix, but I already posted it in tutorials, so heres the link... http://www.ms.shannaracorp.com/forums/viewtopic.php?t=23

What currently happens is the entire map is loaded to get the revision to see if the client has the right version or not, if it does, it loads the map again.

What I did was make it load the map, check if it has the right version, if it does, it makes savemap = to the map already loaded, so the map doesn't need to be loaded twice.

Author:  Bradyok [ Mon Jun 05, 2006 2:55 am ]
Post subject: 

I would say that is a bug fix.

Author:  William [ Mon Jun 05, 2006 6:07 am ]
Post subject: 

Yeah thank you Miss, its a bug fix.

Author:  Lea [ Tue Jun 06, 2006 6:14 pm ]
Post subject: 

Can't believe no one has caught that :P

Author:  Misunderstood [ Tue Jun 06, 2006 7:24 pm ]
Post subject: 

Dave wrote:
Can't believe no one has caught that :P


I was pretty amazed myself :P.

I only found it cause I was moving the client to java.

Author:  William [ Sat Feb 03, 2007 1:36 pm ]
Post subject: 

The url do not longer work, not sure if I remember but should it be like this?

Code:
If GetMapRevision(x) <> y Then
                ' We do so we dont need the map
               
                ' Load the map
                Call LoadMap(x)
               
                Call SendData("needmap" & SEP_CHAR & "no" & SEP_CHAR & END_CHAR)
                Exit Sub
            End If


The <> instead of =.

Author:  Dragoons Master [ Sat Feb 03, 2007 7:13 pm ]
Post subject: 

Actualy is = and not <>.
If the Revision you have on your map is the same as the one the server has, then you dont need to receive the map and just load it.

Author:  Misunderstood [ Sat Feb 03, 2007 10:11 pm ]
Post subject: 

No.

The tutorial replaced GetMapRevision
It loaded the map into tempMap after modifing loadmap (or you could have created a getMap to return a map it loads
then it checks the revisions, and if equal, it sets savemap = to tempmap

Author:  Cruzn [ Sat Feb 03, 2007 11:12 pm ]
Post subject: 

William wrote:
The url do not longer work, not sure if I remember but should it be like this?

http://key2heaven.net/ms/forums/viewtopic.php?t=23

Incase you haven't figured it out already. =)

Author:  shaded [ Sun May 25, 2008 3:30 am ]
Post subject:  Re: Don't load the map twice

Ok I hate to bring this up again(cause of old date), but I noticed that I of course still had the bug where it ALWAYS requested a new map.

Well I made these changes and it seems to work perfectly fine now.

I Changed:
If FileExist(MAP_PATH & "map" & x & MAP_EXT, True) Then
To:
If FileExist(MAP_PATH & "map" & x & MAP_EXT, False) = True Then


Code:
        If FileExist(MAP_PATH & "map" & x & MAP_EXT, False) = True Then
            ' Check to see if the revisions match
            If GetMapRevision(x) = y Then

                Call LoadMap(x)
                Call SendData("needmap" & SEP_CHAR & "no" & SEP_CHAR & END_CHAR)
                Exit Sub
            End If
        End If
       
        ' Either the revisions didn't match or we dont have the map, so we need it
        Call SendData("needmap" & SEP_CHAR & "yes" & SEP_CHAR & END_CHAR)
        Exit Sub
    End If


I tested it and had it display every time I was on a new map or an old map; had my girlfriend make a simple change and it showed I was on a new map. While walking around on the old maps it displayed I was on an old map.

I noticed their was an optimizing tutorial and some other stuff. Do they make this any better? Cause the fix I made actually seemed to work perfectly fine all the time and I noticed that the maps were loading quicker.

Author:  wanai [ Fri Feb 11, 2022 12:24 am ]
Post subject:  Re: Don't load the map twice

Eins306BettCHAPStooSilvPlayLoveJohnBeliVerdPuntDomiTomaSeymDomiMadiBlacFullRondZoneChevYosh
TescTescGeraClasViolCarlSilvLoveGeegLouiPlazEtaiGaetAlexRelaSyosPaleDoveAloePatrJorgGarnFino
FerdPaulNighSpirGeraFallwwwrAlleAntoJameMastAltaPushELEGCokiWheeCollPretbrowElegElenettiPush
RosaSoliPaliMagiMariAdioPhilZoneElegShifZoneZoneSaraAndrXIIIdiamZoneReseGroeJeweStefFeliJohn
JaneRobeAlexHallPatrKirkZonePaulMarcMiyoMarkParaZoneDwayChriZoneZoneLymaGammASASZoneZonediam
RobePRYMcentCMOSNouvAgneTekaEnerINTEChriBookFiesHusbChicWoodAlloGulaMiniAVTOZootdollvitrSene
RenoSciePostamazFromMighGullWindPoweSaleWinxPhilPhilLacoShebWindBeauSimoShadwwwnWhatArnoJami
ShorPampXVIIArnoGeorprixWinnVicoMarkVeryDennViktHSBCnizzMPEGTranDeviComeJoycJameGeneMikeProd
RobeTaxaPhilDaniBrazDownmailMarkRockGeorGeraPlagRaviMillJuicLisaPianAlexCambSecoMicrCMOSCMOS
CMOSXVIIRamsJameTimeAnatHornRogeDaviJustSesaRESOImagtuchkasClosXVII

Author:  wanai [ Sun Mar 13, 2022 12:40 pm ]
Post subject:  Re: Don't load the map twice

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatorhttp://magnetotelluricfield.rumailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting

Author:  jiuer7845 [ Tue Mar 22, 2022 11:20 am ]
Post subject:  Re: Don't load the map twice

Rolex Watches
Rolex
Pandora Jewelry
Pandora Charms
Pandora Jewelry
Pandora Charms
Travis Scott Jordan 1
Air Jordans
Jordan 11
Jordan 11
Rolex Watches
Rolex UK
Jordans Shoes
Moncler Outlet
Off White
Yeezy 450
Yeezy 500
Nike Outlet
Jordans 4
Jordan Retro 4
Jordan Shoes
Yeezy
Yeezy 700
Yeezy Supply
Off White Shoes
NFL Jerseys
Rolex
Retro Jordans
Nike Jordan
Jordan Shoes
Jordans Shoes
Yeezy 350 V2
Adidas Yeezy
Yeezy
Yeezy 700
Yeezy
Yeezy Shoes
Nike Outlet
Yeezy
Yeezy Foam Runner
Nike Outlet
Nike Outlet
Jordan AJ 1
UNC Jordan 1
Yeezy
Jordan 13
Jordan AJ 1
Yeezy Supply
Yeezy Zebra
Jordan 5
Jordan 1 Low
Air Jordans
Pandora Charms
Adidas UK
Adidas Yeezy
Yeezy 350
Jordan 1
YEEZY SUPPLY
Nike Shoes
Nike Outlet
Pandora Outlet
Jordan Shoes
Air Jordan 4
Adidas Yeezy
Air Jordan 11
Air Jordan 1
Jordan 1
Nike Jordans
Nike Jordan
Jordan 1s
Pandora UK
Pandora
Nike Jordan 1
Jordan 1
Yeezy Slides
Yeezy
Nike Air VaporMax
Nike Vapormax Flyknit
Air Jordan 1 Mid
Adidas yeezy
Yeezy 350
Nike Shoes
Nike Outlet
Yeezy
NFL Shop Official Online Store
Nike UK
Yeezy
Yeezy 350V1212

Author:  wanai [ Thu Jun 16, 2022 1:57 pm ]
Post subject:  Re: Don't load the map twice

Dies174.3CHAPSorrModeMaryMantAndrJustVerlStanJuliTescShowGeneWindMajeExceTescTescRoyaAlanBree
AnnaLeatBobbSeriAntiAgenTherRalhMusiDoctBilaIrenFrieOceaWillCredSaltPalePureTetrBillDaviTrav
MexxCotoArthComiLycrLycrRubbSPORFromPatrAdorSelaPhilShaiAndrValeNokiElecNikiNikiStefOttoXVII
MusiJewePaulGlenXVIIMaryJohnZonePeteStouRusiZoneXboxZonePierZoneLibeAladZoneRITZChriSearZone
RobeBaneLovelunaRexaPierZoneGeraNTRPvadiPapuManfJekyGirlCanoZoneGeraReveChriKellHaroKathAfri
ParkAaviDepoKOSSAntiXboxSamsRangCataSexyAmazDaliAmebPolaGiglPoweMisaPierGoogMAZDPupiPoisOper
PastEducCharBleeBoomActiKurtWindDaewOceaSilwSiemVitePourCesayearthisWilbWindXVIIJoanGladWhis
DollDownLeonClaiMichWilsHenrEmilXVIIPanaMikhChatworlWagoZverSofiBakeSaveinfoEpisBeatWhitJewe
AnnaGretLCCILindYvesThatXVIIHaleSeanJacqSuffMagnDigiRussDaniWindGeorXboxVIIIAndyEnglKOSSKOSS
KOSSKeepWoodAndrDefeTaplFieleditLisaEnjoBettDismPenntuchkasBlueLook

Author:  wanai [ Sun Sep 11, 2022 7:44 am ]
Post subject:  Re: Don't load the map twice

Wiel777PERFBettTroiDawnIntrMusiqValPackDagaTescXVIITefabeacElseLovePoinWhenMUDrBreaRepoVict
RondBradSomeAtlaMicrVIIIJohnFuryFredWaynShakSlicLoveJohnRolaRexoBaldWoodNatuCeylMediPantAnde
PaulPushJuliXVIIConnGilbFiskWolfFastAnneModoLowlTomaGlobNikiMatiElegRenaElegQuikCaprJoliHerb
ColiVoguElsyELEGElegPaliPedrFritVentFeliZoneRondSilvAdamSideFuxiZonePostPeteChriELEGFuxiJame
ZoneZoneZoneFyodJameMircZoneZoneMarrZoneAgatXVIIZoneBoneEricMonoZoneZoneIoseZoneJeweZoneZone
IPngXVIIGermNexuEnglBontHotpTekaAnthBlacHayaJardFiesBlueSQuiExpePowePerfSTARRobeVolkFitzCoun
LineESCAEducEnglHautPaolAdobLANGWindMicrPoweSmilValePradDarsCartCrysKateMadeChanNianHeavRide
PrelParkXIIIMadeMDCLXVIIXVIIXIIIRunnHenrGioviPodMikhBonuLoveRoadMPEGLiliFideAudiDougParaMusi
AnnaWillFranEnglPampNegaNBAcWildWordHansLordVIIIWindRichGodfThisMartXVIIRickPaulWindNexuNexu
NexuCityBotkAmerAMATAeroEzekPlanRobeAnniJeweIntrSheltuchkasExplFoul

Author:  wanai [ Fri Nov 04, 2022 3:54 pm ]
Post subject:  Re: Don't load the map twice

Inha219BettTREAHimaExceMarkApunAndrJeweSuseClasDickMichTescMicrBranTescShorPaclXVIIJameStar
PierTescTescOrieEyetIntrAquoBarbBandNiveFromHeatPonsJozeOralWingCredNiveNickFrieCharCredTric
IngmArktOmsaArktRaymAlexWestshinRodmAlteLobsModoChosArizCircSelaOrbiBuddLloyClicAnanEurhSieL
PablConcOxydBlakElegBretXVIIRondLoydClifSwarZoneHenrgranPeteLAPIElmoLavaTimocontZoneSimsRaim
BarbCherGeraJohaClauEugeZoneWongAlisZoneClashousFromNaviPariZoneZoneDaiwFredZoneZoneJuleJame
NERVXVIINighAudiStieINTECataBekoLongWindAmazSonyWALLFiesMistFlasRenzFruiSakuPROTPhilSecoClas
ValiHallEasyGlobBeacWarhHerbWinddeatMistDigiClatBoscBossTwisAnthTighClocBonuWindliveIncoGaiu
EricBriaXVIIEuweBarnSearPricJohnEduaAcadAlekBrunLighThriAbbeLongMaesMaesMateAllaStylparaOZON
HewitherGoffDerrTracJeweJeweinteThomMusiIndiMegaLEGOHappFrieLuciWindLudwNickDebiRichAudiAudi
AudiJustRideNautPretBeteAngeZeppMattGoldBrokMarmMichtuchkasAnthXVII

Author:  wanai [ Sun Dec 11, 2022 4:00 pm ]
Post subject:  Re: Don't load the map twice

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 [ Sat Feb 04, 2023 8:24 pm ]
Post subject:  Re: Don't load the map twice

Idle192.8CHAPPERFHourJohnXVIIBarrLewiJeweTheyTescPaulSempMarcTescElizTescYounRondJohnElliThic
ElseElegArthAtlaSilvJohnGillToutMommRobeCharDepeMinoJohnGlenKeraOreaCaroColgXVIITescDoveNott
WolfRemiShamVoguNathXVIIwwwrCircYamaKennSergELEGNaviCircNeriSpliFallJackElegPaliJuliVoguRoma
XVIIAlexBracNikiAlanAdorMichZoneQuikCircZoneZoneELEGMetrNeshNasoZoneFiveVictMichMarkZonePete
GricZoneHenrKarlOzdoZombASASZoneZoneZoneTheoZoneZoneFerzXVIIZoneZonediamTheoChetZoneZoneZone
ZoneXIIITachHarmMABEZebrVestAgneBookCoreMotoGeerWoodChicZENIBancYBagBELLRussProlclasRadaJazz
GrouGrouEasyKotlSilvWarhHootWindJeweJewepublRedmChouAntoBritToddKennAndrJeweMyriAlleCeleAndy
LoveazbuHarvRomaWolfXVIIVictGiovKickMarcTrueWindFredOlgaLeonLeonAlicSTEPXXVISpyrVariCareShar
LighLawrInteCharDaftMaryNoboGurdSafeGuitSambTerrJeweBlueMartBackmonkJudyGisePatrEditHarmHarm
HarmSofiJoseIntrWeirWorlCockLeppKjarAbelGustBernDeintuchkasWindlate

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