Mirage Source
resync button - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: resync button (/showthread.php?tid=1883)



resync button - Ligaman - 01-07-2008

You know sometimes when you load a new map your char lags so i would like to make a resync button.
Could someone post the code for it to understand it so i can use it?

-Ligaman


Re: resync button - Leighland - 08-07-2008

Explain to me what you mean by resynching?

If you mean simply reloading the surfaces you can do it like so:

in modCommands:
Code:
If Mid(MyText, 1, 8) = "/refresh" Then
            If MsgBox("You are about to refresh all the graphics surfaces. This could take some time, and may also 'mess the graphics up'. If anything looks distroted after reshing, you may try to do it again, but it is better to restart the game client." & vbNewLine & "Do you wish to refresh?", vbYesNo, "Warning") = vbYes Then
                Call DestroyDirectX
                Call InitDirectX
                Call AddText("Surfaces recallibrated.", white)
            End If

            MyText = ""
            Exit Sub
        End If



Re: resync button - Coke - 08-07-2008

Wow, I never actually thought of that command - rly useful for editing sprites etc and staying in-game o.0

He means an x/y refresh. I'll paste the code here later.


Re: resync button - Coke - 08-07-2008

blz i can has code for 3d ISO 1289731739x9283402984902 maps k?


Re: resync button - Leighland - 08-07-2008

Fox Wrote:Wow, I never actually thought of that command - rly useful for editing sprites etc and staying in-game o.0

He means an x/y refresh. I'll paste the code here later.

Thatsexactly why i made that code lol. I did all my quest editng in game and was starting to realize how easy it wouldbe to just draw the quest items, recallibrate the surfaces and then test it right away without having to log in and out a thousand times.


Re: resync button - Coke - 08-07-2008

Leighland Wrote:
Fox Wrote:Wow, I never actually thought of that command - rly useful for editing sprites etc and staying in-game o.0

He means an x/y refresh. I'll paste the code here later.

Thatsexactly why i made that code lol. I did all my quest editng in game and was starting to realize how easy it wouldbe to just draw the quest items, recallibrate the surfaces and then test it right away without having to log in and out a thousand times.