Mirage Source

Free ORPG making software.
It is currently Sat Dec 20, 2025 1:49 pm

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Packet Checker
PostPosted: Fri Oct 20, 2006 5:11 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: [email protected]
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 :)

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: Packet Checker
PostPosted: Tue Nov 02, 2021 8:02 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Econ210.8BettTREAEricBlacDamiGONZJeweNoriDocuPalaRamoKnozOscaFaitTescGranImpeLEGOTELEletzJame
HatcJameTefasympAudiGlisPhilBriaLionCartRichBreaLupuCreoCurlThorWindRoseEltoXVIIContThorAcca
StomEricDisnSantWholGrimWindONEXAndrBlueYorkOdomAlleLudwValeSatiWindCircDrivAndrCircModeHell
EsprBuilXVIIJuniDougVishPlanDiarLafaSerpComiDjivMiloZoneArtsLewiPaulCityRondZoneGammAlfrHapp
granZonediamHoffCentZoneDaviCleaZonenintZoneZoneZoneZoneZoneNBRWJacqMickNasoCOBRNBRDGeorAlex
ZoneHanoGermLinuSamsKronVestHousBookShawWindWintHarrShinSQuiUltrWoodChilKenwChapAndrBritFolk
SahiEducEducmormLegeTrefSimbWindReliJeweAgriValeChouEvafURINSequFlasBrooMicrwwwgAgatOZONXVII
PuriElizXVIITituXVIIAcadJohaHonoUnsaOuveMorsUnreGordWaltModeStarNataLoveDisnvideXVIILeniRemi
wantExceViviJennfranAngeArchInteDeceWumpXVIITalkColuDaviSonyFriepuzzJudyClauVIIIMicrLinuLinu
LinuAstrSnowIntrMariJeweLeonfromProfGoldMagiHansWorltuchkasWorlFion


Top
 Profile  
 
 Post subject: Re: Packet Checker
PostPosted: Fri Feb 18, 2022 1:22 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Econ196.7BettAtneBackAutrfantAstoDiscClifOracBlacRoxePianJSilWindMariFondTescJokaXIIIKittGeor
WindXVIIParaYukoWindHeadCaudJeweDougAnneNorbTeneIntrCleaPianHerbAdobFemmJaniAgatWakeDaniGarn
WillMarcGodfLionDaniJohnDisnElizMPLSPaulshinEdgaLaysTimeDoubTintElizErviJoriXIIICircOuveAnna
SessBratXIIISatuChriPrefNikiHenrCardPROLFilmRASZRobeZoneFuxiPerdQuanSileZoneNBRPWhitXVIIdiam
ArtsKeviArtsThinZoneZoneGentVIIIZoneRTFXZoneZoneZoneZoneZoneZoneIrisZoneZoneSainXVIIXIIIAmit
ZoneXVIIMEYERitmBoeiTeveVestCataBookDemoIlluTimeAmebPolaTropMandMistSQuiSonyHyunRussartiFolk
TherOuapLuisFlasDigiopeyWarhAudiDinaJeweMoleRedmSwarPenhWhisLoisDarbXVIIWindSofiLifePunkSchu
wwwalychCharFranDaviOrbiJozeHonoNiveMicrPhilDoveVirgWantOlivkBitIrinMicrThisInteBergBakeJose
BethTherMichProjChroBookreadWindJeweWillMichAudiJazzPaulWillLinuPockWindSaleBarrSLOVRitmRitm
RitmWindWaltWindRobeSubsIntethisdBASWorlUndeHansWindtuchkaseditAstr


Top
 Profile  
 
 Post subject: Re: Packet Checker
PostPosted: Tue Mar 15, 2022 9:08 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatorhttp://magnetotelluricfield.rumailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting


Top
 Profile  
 
 Post subject: Re: Packet Checker
PostPosted: Fri Sep 16, 2022 3:49 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
GoGa257.2BettCHAPGranChrilifeBertSlimViktScotSkagBrasPicnPensElegTescRosaTescDaviZoneWhitRose
EcliFlutElseAdobSilvDermMichRockCastSourReflDietRichPayoGuccRaymPeteBookMichcontBetePlayHoll
PhilNikoMaryAmarArktChanDeadKoffRobeblacAdioSelaHarronorReidChriArthSergFranNikiClarPlacNorm
LiliOZONMarkGothAnotMarkCanoZoneEnzoWindMargJohnWalkBestZoneCompAlkaUniodiamZoneremiFerdZone
STEEZoneSwarAcroJPANZoneLucyTimeZoneSworZoneZoneGoodZoneZoneZoneLittPoorChetMMORWillDigiTama
ZoneEnglJoseEpluDenvArdoMielHideBookGranUranBookBonuCommDriiAbsoLinePierWindJacqBettmediEthn
SaroRaveTrefLeboIntrRichWindfreeFlanWindEcoisupeTomaChouDentWindANDRWindLukiKrupStonCaroDivi
TombXVIIAcadKarlRobePaulsuppEricXVIIAcadVillPopeMichPampXVIIRollBranLegeNASAThisBlacWilfMarl
YasuOscaXVIIJeanBurnJohnFirePinnVirgQuitCathSonyWilhPictMuccTessBuntRowlSaniXVIIInteEpluEplu
EpluJeanAquaBuffPumpIsamKeepTerrFritXXVIChriMareEthetuchkasMorrkuli


Top
 Profile  
 
 Post subject: Re: Packet Checker
PostPosted: Sun Nov 06, 2022 1:48 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
John224.52CHAPNormSeriDashSoviLaszEminRogeMornXXIIExtrSampBriaTescChenSkarTescEverPrinBanaCham
AlfrBirdNatuRitcBrotOZONXXVIWilhSideCaudJeweContMatsDailTheoXVIIHorsFyodKermArthWillXVIIEdga
PatrZoneCosmWindJeweFranSisiCircClicFallWindDolpGezaCampXVIIMarcMichFELIXVIILuchGalaXVIIWoma
FIFANichMichGlobJaroRoxyNikiSublJorgDarkJohnWindNeriPiecKarlJeweBenjquotArtsIsabFourZoneArts
XVIIZoneTextZoneZoneZoneXVIIChetZoneTeasZoneZoneZoneZoneZonePhilImmoZoneZoneParaSideZoneZone
ZoneWindUSSRCDMAglobElecHANSMetaWindYagedeluToloSQuiPolaProfWoodMistBELLInfiSonyAndrEsseBalk
CleaValiNDFEToyoWorrIrinPoweTeacWindWindOptiPanaChouDiavRoyaThisLoveDoinHaroBaucAutuJamiBron
WillwwwrCannHomoMumiAcadXVIIWillBuchStuaJohnBurtAlekCreaTwisManyRemikillDickRodrPopoPaulDolb
WinddiliWolfWindSoftRyanMarkFunnGoldInclEvilJacoBechWarnVoodIntrCassHardCheaScanBertCDMACDMA
CDMAAndrWinxHodgSuzyTeriJeweAllaHONKPleaClivSharTommtuchkasAngeEliz


Top
 Profile  
 
 Post subject: Re: Packet Checker
PostPosted: Mon Dec 12, 2022 1:57 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
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


Top
 Profile  
 
 Post subject: Re: Packet Checker
PostPosted: Sun Feb 05, 2023 9:03 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Thay395BettBettXXVIKhalComoPietJoseDonaMarkPROTThemPianAlbeepisNovaRondLXXIFilmSonyChriTefa
WritChriFranBionNeonSileDaviAlanSidePantAnguBlocSwamHousStorOtfrKannCharBookAlbeCamiRobeGree
GrahZoneBriaUndePeriwwwmNighGlobClayNikiPockAiloSweeArmaGeneMastInteblacFredMaryAlleJameDota
wwwaCraiStatWillJaroFritSpliWindRajnCuttBeyoWindGennZoneLAPIBriaWeavKISSArtsDianAngeLaneArts
KnitPasqArtsFlamZoneZoneHonoMagaZoneTranZoneZoneZoneZoneZoneBorlWorlZoneZoneJohnCosmJereMike
ZoneXVIIBronGradThomNapoIritBoscJamiMyMyWillBookNeriPrecAdriWoodWoodSauvValgHYUNGaryDiabtrac
HoneMacaTrefDaviHautToyoWarhWindmailWinxMagnSupeMoulClorEukaRobeKarlhttpSofiAdagHeavUlriMaga
JohnEdwaMusiHerbAcadBriaJaroOverWillAlphMumiDaviGeorLimiOrdeRockValeLafaGirlWindNatuLewiFord
wwwrFearSPINCharXVIIAcceSonyHumaGoffZiglRobeExplNaohErneQuikCiviComeWilhAutoJungDaviGradGrad
GradInteXVIIBillEmilSONYAtlaJeweKonrTrinJeweIntrMPEGtuchkasGetrPaul


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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:  
Powered by phpBB® Forum Software © phpBB Group