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

Packet Checker
http://web.miragesource.net/forums/viewtopic.php?f=210&t=666
Page 1 of 1

Author:  William [ Fri Oct 20, 2006 5:11 pm ]
Post subject:  Packet Checker

Difficulty: 1/5

Introduction
Has it ever happened to you, that you send packets that does not exist? Well, if you add this, you will be warned when a packet is sent that does not have a reciever.


Tutorial Start: Client Side (IF)
First, make sure that all the If (LCase(Parse(0)) in Sub HandleData has a Exit Sub before the End if. Ex)
Code:
    ' ::::::::::::::::::::
    ' :: Weather packet ::
    ' ::::::::::::::::::::
    If (LCase(Parse(0)) = "weather") Then
        GameWeather = Val(Parse(1))
        [b]Exit Sub[/b]
    End If

After that, at the bottom of of Sub HandleData, add this:
Code:
Call SendData("PacketError" & SEP_CHAR & Parse(0) & SEP_CHAR & END_CHAR)


Server Side
Now make a listbox on the server and name it lstDebugPacket. Now anywere in Sub HandleData, add:
Code:
    ' :::::::::::::::::::::::::::
    ' :: Type the packet error ::
    ' :::::::::::::::::::::::::::
    If LCase(Parse(0)) = "PacketError" Then
        frmServer.lstDebugPacket.AddItem "Server-Client" & Parse(1) & " | " & date & " | " & time
    End If


Now, make sure all If LCase(Parse(0)) in Sub HandleData has a ExitSub, as you did for the Client.
And at the bottom add:
Code:
frmServer.lstDebugPacket.AddItem "Client-Server" & Parse(1) & " | " & date & " | " & time


Tutorial Start: Client Side (Select Case)
So now if you use select case, you use pretty much the same system, but at the bottom of Sub HandleData, instead of adding that line of code, you add this before it:
Code:
Case Else


Thats it! Now when a packet that does not exist in your game/engine is found. It will be typed in the listbox, so you easily can debug and find it :)

Author:  wanai [ Tue Nov 02, 2021 8:02 am ]
Post subject:  Re: Packet Checker

Econ210.8BettTREAEricBlacDamiGONZJeweNoriDocuPalaRamoKnozOscaFaitTescGranImpeLEGOTELEletzJame
HatcJameTefasympAudiGlisPhilBriaLionCartRichBreaLupuCreoCurlThorWindRoseEltoXVIIContThorAcca
StomEricDisnSantWholGrimWindONEXAndrBlueYorkOdomAlleLudwValeSatiWindCircDrivAndrCircModeHell
EsprBuilXVIIJuniDougVishPlanDiarLafaSerpComiDjivMiloZoneArtsLewiPaulCityRondZoneGammAlfrHapp
granZonediamHoffCentZoneDaviCleaZonenintZoneZoneZoneZoneZoneNBRWJacqMickNasoCOBRNBRDGeorAlex
ZoneHanoGermLinuSamsKronVestHousBookShawWindWintHarrShinSQuiUltrWoodChilKenwChapAndrBritFolk
SahiEducEducmormLegeTrefSimbWindReliJeweAgriValeChouEvafURINSequFlasBrooMicrwwwgAgatOZONXVII
PuriElizXVIITituXVIIAcadJohaHonoUnsaOuveMorsUnreGordWaltModeStarNataLoveDisnvideXVIILeniRemi
wantExceViviJennfranAngeArchInteDeceWumpXVIITalkColuDaviSonyFriepuzzJudyClauVIIIMicrLinuLinu
LinuAstrSnowIntrMariJeweLeonfromProfGoldMagiHansWorltuchkasWorlFion

Author:  wanai [ Fri Feb 18, 2022 1:22 am ]
Post subject:  Re: Packet Checker

Econ196.7BettAtneBackAutrfantAstoDiscClifOracBlacRoxePianJSilWindMariFondTescJokaXIIIKittGeor
WindXVIIParaYukoWindHeadCaudJeweDougAnneNorbTeneIntrCleaPianHerbAdobFemmJaniAgatWakeDaniGarn
WillMarcGodfLionDaniJohnDisnElizMPLSPaulshinEdgaLaysTimeDoubTintElizErviJoriXIIICircOuveAnna
SessBratXIIISatuChriPrefNikiHenrCardPROLFilmRASZRobeZoneFuxiPerdQuanSileZoneNBRPWhitXVIIdiam
ArtsKeviArtsThinZoneZoneGentVIIIZoneRTFXZoneZoneZoneZoneZoneZoneIrisZoneZoneSainXVIIXIIIAmit
ZoneXVIIMEYERitmBoeiTeveVestCataBookDemoIlluTimeAmebPolaTropMandMistSQuiSonyHyunRussartiFolk
TherOuapLuisFlasDigiopeyWarhAudiDinaJeweMoleRedmSwarPenhWhisLoisDarbXVIIWindSofiLifePunkSchu
wwwalychCharFranDaviOrbiJozeHonoNiveMicrPhilDoveVirgWantOlivkBitIrinMicrThisInteBergBakeJose
BethTherMichProjChroBookreadWindJeweWillMichAudiJazzPaulWillLinuPockWindSaleBarrSLOVRitmRitm
RitmWindWaltWindRobeSubsIntethisdBASWorlUndeHansWindtuchkaseditAstr

Author:  wanai [ Tue Mar 15, 2022 9:08 pm ]
Post subject:  Re: Packet Checker

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

Author:  wanai [ Fri Sep 16, 2022 3:49 am ]
Post subject:  Re: Packet Checker

GoGa257.2BettCHAPGranChrilifeBertSlimViktScotSkagBrasPicnPensElegTescRosaTescDaviZoneWhitRose
EcliFlutElseAdobSilvDermMichRockCastSourReflDietRichPayoGuccRaymPeteBookMichcontBetePlayHoll
PhilNikoMaryAmarArktChanDeadKoffRobeblacAdioSelaHarronorReidChriArthSergFranNikiClarPlacNorm
LiliOZONMarkGothAnotMarkCanoZoneEnzoWindMargJohnWalkBestZoneCompAlkaUniodiamZoneremiFerdZone
STEEZoneSwarAcroJPANZoneLucyTimeZoneSworZoneZoneGoodZoneZoneZoneLittPoorChetMMORWillDigiTama
ZoneEnglJoseEpluDenvArdoMielHideBookGranUranBookBonuCommDriiAbsoLinePierWindJacqBettmediEthn
SaroRaveTrefLeboIntrRichWindfreeFlanWindEcoisupeTomaChouDentWindANDRWindLukiKrupStonCaroDivi
TombXVIIAcadKarlRobePaulsuppEricXVIIAcadVillPopeMichPampXVIIRollBranLegeNASAThisBlacWilfMarl
YasuOscaXVIIJeanBurnJohnFirePinnVirgQuitCathSonyWilhPictMuccTessBuntRowlSaniXVIIInteEpluEplu
EpluJeanAquaBuffPumpIsamKeepTerrFritXXVIChriMareEthetuchkasMorrkuli

Author:  wanai [ Sun Nov 06, 2022 1:48 am ]
Post subject:  Re: Packet Checker

John224.52CHAPNormSeriDashSoviLaszEminRogeMornXXIIExtrSampBriaTescChenSkarTescEverPrinBanaCham
AlfrBirdNatuRitcBrotOZONXXVIWilhSideCaudJeweContMatsDailTheoXVIIHorsFyodKermArthWillXVIIEdga
PatrZoneCosmWindJeweFranSisiCircClicFallWindDolpGezaCampXVIIMarcMichFELIXVIILuchGalaXVIIWoma
FIFANichMichGlobJaroRoxyNikiSublJorgDarkJohnWindNeriPiecKarlJeweBenjquotArtsIsabFourZoneArts
XVIIZoneTextZoneZoneZoneXVIIChetZoneTeasZoneZoneZoneZoneZonePhilImmoZoneZoneParaSideZoneZone
ZoneWindUSSRCDMAglobElecHANSMetaWindYagedeluToloSQuiPolaProfWoodMistBELLInfiSonyAndrEsseBalk
CleaValiNDFEToyoWorrIrinPoweTeacWindWindOptiPanaChouDiavRoyaThisLoveDoinHaroBaucAutuJamiBron
WillwwwrCannHomoMumiAcadXVIIWillBuchStuaJohnBurtAlekCreaTwisManyRemikillDickRodrPopoPaulDolb
WinddiliWolfWindSoftRyanMarkFunnGoldInclEvilJacoBechWarnVoodIntrCassHardCheaScanBertCDMACDMA
CDMAAndrWinxHodgSuzyTeriJeweAllaHONKPleaClivSharTommtuchkasAngeEliz

Author:  wanai [ Mon Dec 12, 2022 1:57 pm ]
Post subject:  Re: Packet Checker

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 [ Sun Feb 05, 2023 9:03 am ]
Post subject:  Re: Packet Checker

Thay395BettBettXXVIKhalComoPietJoseDonaMarkPROTThemPianAlbeepisNovaRondLXXIFilmSonyChriTefa
WritChriFranBionNeonSileDaviAlanSidePantAnguBlocSwamHousStorOtfrKannCharBookAlbeCamiRobeGree
GrahZoneBriaUndePeriwwwmNighGlobClayNikiPockAiloSweeArmaGeneMastInteblacFredMaryAlleJameDota
wwwaCraiStatWillJaroFritSpliWindRajnCuttBeyoWindGennZoneLAPIBriaWeavKISSArtsDianAngeLaneArts
KnitPasqArtsFlamZoneZoneHonoMagaZoneTranZoneZoneZoneZoneZoneBorlWorlZoneZoneJohnCosmJereMike
ZoneXVIIBronGradThomNapoIritBoscJamiMyMyWillBookNeriPrecAdriWoodWoodSauvValgHYUNGaryDiabtrac
HoneMacaTrefDaviHautToyoWarhWindmailWinxMagnSupeMoulClorEukaRobeKarlhttpSofiAdagHeavUlriMaga
JohnEdwaMusiHerbAcadBriaJaroOverWillAlphMumiDaviGeorLimiOrdeRockValeLafaGirlWindNatuLewiFord
wwwrFearSPINCharXVIIAcceSonyHumaGoffZiglRobeExplNaohErneQuikCiviComeWilhAutoJungDaviGradGrad
GradInteXVIIBillEmilSONYAtlaJeweKonrTrinJeweIntrMPEGtuchkasGetrPaul

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