Mirage Source

Free ORPG making software.
It is currently Fri Apr 26, 2024 3:01 am

All times are UTC




Post new topic Reply to topic  [ 18 posts ] 
Author Message
PostPosted: Wed May 28, 2008 3:39 am 
Offline
Banned
User avatar

Joined: Mon Jun 05, 2006 9:22 pm
Posts: 394
Location: USA
The title is long, but the tutorial is simple.

Ever have those annoying mapping things you don't think about? You place a rock at the edge, block the tile. It can be access from a map below it, then some player ends up on a large blocked path? Sometimes maps just need to end at the edges and not have people warp on them.Here is the simple fix.

All Server Side!

Open: ModGameLogic

In: Sub PlayerMove

Find:
Code:
    Dim MapNum As Long


Add Under:
Code:
    Dim NewMap As Long


Find:
Code:
' Check to see if we can move them to the another map
                If Map(GetPlayerMap(Index)).Up > 0 Then
                    Call PlayerWarp(Index, Map(GetPlayerMap(Index)).Up, GetPlayerX(Index), MAX_MAPY)
                    Moved = YES
                End If


Replace with:
Code:
' Check to see if we can move them to the another map
                If Map(GetPlayerMap(Index)).Up > 0 Then
                    NewMap = Map(GetPlayerMap(Index)).Up
                    If Map(NewMap).Tile(GetPlayerX(Index), MAX_MAPY).Type <> TILE_TYPE_BLOCKED Then
                        Call PlayerWarp(Index, Map(GetPlayerMap(Index)).Up, GetPlayerX(Index), MAX_MAPY)
                        Moved = YES
                    End If
                End If


Do the same for the other directions. Problems or fixes or whatnot, post here. :)


Top
 Profile  
 
PostPosted: Wed May 28, 2008 5:49 am 
Offline
Pro
User avatar

Joined: Thu Dec 14, 2006 3:20 am
Posts: 495
Location: California
Google Talk: Rezeyu@Gmail.com
Simpler fix:


Don't map random blocks for no reason on the edges of maps where players will walk onto. I'd personally find it more annoying to be running against the edge of a map and not know why I can't cross over.


:|


Top
 Profile  
 
PostPosted: Wed May 28, 2008 6:49 am 
Offline
Banned
User avatar

Joined: Mon Jun 05, 2006 9:22 pm
Posts: 394
Location: USA
Sometimes a block at the edge just fits.

Edit: Idea could also be used to check for an NPC or a Player so you don't have 2 players on top of one another or warp over an NPC or whatnot.


Top
 Profile  
 
PostPosted: Wed May 28, 2008 11:01 pm 
Offline
Knowledgeable
User avatar

Joined: Thu Aug 23, 2007 5:42 pm
Posts: 199
Location: Portland, Maine
Actually with my game I do need to add something like this in. Players can create walls and cities on the edge of the maps. If they close the gates of the city, they will be blocking other players.

But what I'll do is if there is a blocking square on the adjacent map, then on the current map I'll blit some thin border or something to let the players know they cannot go there.


Top
 Profile  
 
PostPosted: Wed May 28, 2008 11:50 pm 
Offline
Pro
User avatar

Joined: Sun Aug 05, 2007 2:26 pm
Posts: 547
Yea. That is one of the rules of mapping. Never put blocks on the edges of maps if they don't continue on the adjacent maps. Come to think of it, I should write down the 5 rules of mapping :P.

_________________
GIAKEN wrote:
I think what I see is this happening:

Labmonkey gets mod, everybody loves him, people find out his code sucks, he gets demoted, then banned, then he makes an engine called Chaos Engine.


Top
 Profile  
 
PostPosted: Thu May 29, 2008 6:39 am 
Offline
Persistant Poster
User avatar

Joined: Tue May 30, 2006 2:07 am
Posts: 836
Location: Nashville, Tennessee, USA
Google Talk: rs.ruggles@gmail.com
And who made the 5 rules for mapping? We all have different layers and attributes, and I'm sure your 5 rules for mapping would prove quite obsolete to anyone who's added anything to the maprec that can't be found on these forums in tutorial form. It all comes down to preference really. Personally, I think this is a must have tutorial unless you have scrolling maps. In my opinion, unless you add this tutorial, or scrolling maps, you're either limited as to where you can place block tiles, or have to add extra block tiles to the next map that you might not want to add. I find it annoying when I switch maps and I have to redirect my route due to a block tile that's 1 tile from the edge. I also find it annoying when I switch maps and land right on a block tile and essentially am able to pass right through it.

Brilliant tutorial James. Though, I wouldn't call it a bug fix, like I said, I think it's a preference.

_________________
I'm on Facebook! Google Plus My Youtube Channel My Steam Profile

Image


Top
 Profile  
 
PostPosted: Thu May 29, 2008 8:12 pm 
Offline
Banned
User avatar

Joined: Mon Jun 05, 2006 9:22 pm
Posts: 394
Location: USA
You can move it if you wish. I wasn't sure where to place it. Also, to let people know you could add a player message that says "Something blocks your path..." or something...just a thought.


Top
 Profile  
 
PostPosted: Tue Nov 02, 2021 4:25 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 487533
Cuan194.5CHAPReprXVIIKjelPresLuisRamaRudyFiskFeelLivaPaulFranXVIIJuleEeriTescBallAntoLouiTefa
MicrSeveCharRoseLoveXVIIPeteAlisBennGlisSweeArabMikaBylyRobecoinVisaEmilPatrNortXVIIWindXVII
AccaJasmJongVulpCottExpeMargChesFallCircJeanSergMornilliXVIIConcFevelilaRussKarlJeweMallBoot
MiniJohnJuliSonyWindSelaVentcoopJeweNeumIbizBattNikiTestmikoSchuSwarXVIIArtsAbneFallZoneAndr
ZoneZoneIntrZonePlayZoneKarediamZoneJeanZoneZoneZoneZoneZoneElecAnevZoneZoneGuitBungZoneZone
ZoneXIIIMadeBlueGermElecYukoMielBookFictNighStarOverRoseRenzVanbPoweSTARSORTLanzHaveBiocbalk
CleaSherAlcoJohnParkFordSkypVolkwwwnAbboPiloRedmhappCoctPuribeyoBabyThisKatsElviThreTrumTrue
XVIILaurTravCaroZeutAcadCharLopeEditEtheOZONMicrWindVUFKNextSkyDDownSaloEnhageniWIBFWintJean
LucySongHorsLucyKansSpacOzzyWindJuliwwwaJeweIntrFromArtuJewePassAnitEmptPsycGinaLucyBlueBlue
BlueWritHansBradFredVamoSainTomoAlfrNeomXVIITeriMarktuchkasPeteIcen


Top
 Profile  
 
PostPosted: Thu Feb 17, 2022 9:50 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 487533
Hist182.7CHAPPERFJoseIndeVisiJuneGoinSounHuggSupeHaloSchoExchHansArdeDaviMartmothWillVIIIRond
VictFridSpinDzhiMamaYaliRobeKaspSideGreeTonyVousOnceDessElisSamuVisaRussRobeJohnCaffMPEGXVII
MinuJennIranAlexMOZADeepGibsXVIIFourCircAdioHowaOmsaChilXIIIMousYangblacMiloJohaHEINFranTran
MagnLouiRainTraiWindSelathesXVIIHomoNathPhilSonyELEGOtelRHIABackZoneSoutArtsAlexTraiZoneWilh
ZoneZoneApacZoneZoneZoneLionMORGZoneNokiZoneZoneZoneZoneZoneRaymTupaZoneZoneCracFollZoneZone
ZoneVillHelgCitiThomViskNVMTZigmBookNielLyonDelpMorgPolaDOUGPowePoweSTARCADIMataGibrEndoCelt
PersPastFeedUberNatiToyoBonuWindWindXVIICrayBorkLegoGuccLighHereMicrEdwiPardThemJeweOneRWise
DelaMersWolfPaulCreaZachKariBodiRabiWaltFaroDearPinkAddeBelaAlleElenBlueRigoBremTribIstvThro
SpotWilhLarrsuccWillJensSchoDaviAlbewwwcBernIntrBowiRobeGibbYorkSideIronlineDarrEnglCitiCiti
CitiMalcClivBundMadoYourDoorEverPretEnjoHonoAnnaSucctuchkasXVIIFeel


Top
 Profile  
 
PostPosted: Tue Mar 15, 2022 1:03 pm 
Online
Mirage Source Lover

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


Top
 Profile  
 
PostPosted: Fri Sep 16, 2022 12:08 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 487533
With653.5CHAPBasireasErnsAnotBrunInchJackHaroLinulassOverdiliSimoJaviLeigDolcFilmEchtDonaBery
HiroMartMaurEnteJewePhilPaulCharKeepEyesAlleJeweMegaYorkXVIIInteSuikMarrSchiSquaLuciAlbeMatt
RexoZoneAntoPeopGrimDimaMornCircFallPatrColuGuntRetrIacoMetrCarrListFeliHenrFranSabiGustRavi
OmsaRichWoodElwoSummFallMODOMassMartCircErnsWindNikiHiatArtsWantFranGeneFuxiDaryLookZoneArts
DaniAlfrArtsReliZoneZoneDonaZoneZoneRomaZoneZonediamZoneZoneFyodWindZoneZonePeteThomZoneZone
ZoneTradHeinPoweCompFireNordGeneBookAuthheroWindFlipPrecMistGiglDonaTalkMataBriaJereissutrac
PersHoneGiveMcKiInteWindFerrAudiJeweMistStylIMAGChouLagusoftGustCaulAamiCaugTakewwwsOpenVict
NettIrviJameAlfrRodeTheoMichOZONPonyAlphCitiMikhJeweMikhShorPaulLoveNintInteMostAntoWolfOZON
WindRalpStepJohnJeweSerpInteEnidDeseXboxJeweEdouFinaAndrMicrKeanwwwrRobeBustJoanwwwaPowePowe
PowefoamXVIIMaciSectPlanQuintimeKjarRobeStevBonuPenntuchkasArchJaco


Top
 Profile  
 
PostPosted: Mon Dec 12, 2022 7:25 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 487533
audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting


Top
 Profile  
 
PostPosted: Sun Feb 05, 2023 5:28 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 487533
Alex255.4BettCHAPColiJurgReleSiegCONCWhitMadeMackRostCafeRadiToshDeadAmosSeniRobeZoneWOLFOpti
DestHellStakBrigXVIIMORTXXIIJeweRobeGabrJeanXVIIIRMAIvarJumpRobeMukuMichNiveJohnDekoErhaCent
SchiAlicFyodXVIIJespRafaSwamGeraElegthesFallTideXVIITerrElemRaouDickMervNormAlfrRichKarlJoli
PatrDimaTraiMariReviSelaNikiMaurMichFallWiccXVIIELEGZoneZoneDigiFranLastCedaXVIITraiZoneCurs
ZoneZoneFamiZoneZoneZoneMachChetZoneErneZoneZoneZoneZoneZoneFablRobeZoneZoneZoneChriZoneZone
ZoneHanoMiloMiniMadeSeleNodoFredMicrMagiNintWindFaceOlmeProfESENLineTexaFORDMikePennEncyBaro
PersZewaCreaMileOlivPeteNubySaleJeweMistProfsupeCastRushRoyaWindRobeJohnThosLegiJungPartXIII
IldiSleeRichGerrDAGOFrauXVIIWindJamewwwmLeonHoskXVIIGothSweeBeatCameGeorAutoMateSpicSomeFAKK
ThomExceBoriMicrSuniKnowWereThisRogeInteMicrGautWindMichWindweekIrmgMcKiJeweColiMistMiniMini
MiniStudTracSharElliBabySupeCaliGaryAllaDjanAlexPasttuchkasEmilLove


Top
 Profile  
 
PostPosted: Thu May 11, 2023 6:10 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 487533
Book291.5BettYourBrunMegaJaanClauLuigMichChriRudoBrasEnnsElviQuatWomaEuroWorkStriZoneSomeJoha
AtlaTescModeAnkaCredGrapMemoLostClouCartRobeBoucXVIIGarnPanaPlanSeboNiveCaudExfoPulpGranJard
ColgDreaTracMikeAmarVisuJeweLoonElegviscMariJoacKreaEdgaToveJameMennModeNikiSelaLakaAlleRowb
BackIntrPathRudyHenrLeosXVIIRaouthatParkJasoAladDiscArtsRusiHenrPaulLardMiyoZoneBegiBonuZone
SwarPierSwardiamMaryMaryCharWillXaviEugeRidlManfPlugNokiAlanGainWaynARCHGooNMarkRainonliETSB
DigiPLEWFBRoMicrArabJuliMabeCataBookMajoBookEpsoNeriPinkWillBestKariCityARAGSonyNiceTentJazz
FlatEducEditLoveXIIIUndeWindWindWindJeweLEGOBoscChouBaldChoiLaurMoneErickingGastSexyComeXVII
WillFaceXVIIXVIILibrGiusHonoXVIIJuleHeinOlegJeffMargRealMarcBIOSSergGammLouiWellFranENVYKvas
NokiAmbjXVIIVisuJohnJeweJoelExtrEuroCASESynoAssaStarErleLewiMiedXVIIPanaCharVivaPlayMicrMicr
MicrChriDrivOnlyMorrDickDolbRockRoalSydnSleeHardBruytuchkasSincFive


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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