Mirage Engine
MS4 - Printable Version

+- Mirage Engine (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: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51)
+----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44)
+----- Thread: MS4 (/showthread.php?tid=2792)

Pages: 1 2 3


Re: MS4 - Jacob - 01-06-2009

Doomy Wrote:when fps unlocked
there is a recieving map error when starting up

I took out an unneeded "DoEvents" that was in the gameloop. If you 'unlock' the fps now, you need to add a "DoEvents".


Code:
'        ' Lock fps
'        Do While GetTickCount < Tick + 25
'            DoEvents
'            Sleep 1
'        Loop
        DoEvents



Re: MS4 - Jacob - 01-06-2009

To fix a small error with AlertMsg not working.
Server Side
Replace the current AlertMsg with this:
Code:
Public Sub AlertMsg(ByVal Index As Long, ByVal Msg As String)
Dim Buffer As clsBuffer

    Set Buffer = New clsBuffer
    Buffer.PreAllocate Len(Msg) + 4
    Buffer.WriteInteger SAlertMsg
    Buffer.WriteString Msg
    
    Call SendDataTo(Index, Buffer.ToArray)
    DoEvents
    Call CloseSocket(Index)
End Sub

I've updated the download, so you probably won't have to fix this.


Re: MS4 - Tony - 01-06-2009

Thanks Jacob!


Re: MS4 - Beres - 02-06-2009

Why does the client freeze a bit at the start? Is it because its still loading something? I didn't see the frmSendGetData form open.


Re: MS4 - Jacob - 02-06-2009

Beres Wrote:Why does the client freeze a bit at the start? Is it because its still loading something? I didn't see the frmSendGetData form open.

I don't notice anything. Anyone else get this problem?

I dunno if anyone has checked, but when you change things in the Map, Npc, Item, Shop, or Spell UDT; You do not need to add anything to the 'Edit' packet. It automatically sends everything in the UDT. You do have to make sure the client and server UDTs are exactly the same though.


Re: MS4 - Robin - 02-06-2009

Dynamic sprite sizes and y-based rendering ftw.

[Image: testbqg.png]


Re: MS4 - David David - 03-06-2009

Robin, you need to expand your programming knowledge and skills. Working with MS4 and other Generic engines won't likely get you places. Maybe a little money from helping code things for people. But you should try working on a SERIOUS project if not already, that could potentially bring in players. Then be smart, and after a decent amount of people join put out a Item mall like the asians ;P. Just make a bunch of random junk that looks cool that has no real affect on stats. Suckers really go for those.


Re: MS4 - Jacob - 03-06-2009

David David Wrote:Robin, you need to expand your programming knowledge and skills. Working with MS4 and other Generic engines won't likely get you places. Maybe a little money from helping code things for people. But you should try working on a SERIOUS project if not already, that could potentially bring in players. Then be smart, and after a decent amount of people join put out a Item mall like the asians ;P. Just make a bunch of random junk that looks cool that has no real affect on stats. Suckers really go for those.

Back on topic please.


Re: MS4 - Robin - 03-06-2009

David David Wrote:Robin, you need to expand your programming knowledge and skills. Working with MS4 and other Generic engines won't likely get you places. Maybe a little money from helping code things for people. But you should try working on a SERIOUS project if not already, that could potentially bring in players. Then be smart, and after a decent amount of people join put out a Item mall like the asians ;P. Just make a bunch of random junk that looks cool that has no real affect on stats. Suckers really go for those.

Cba.


Re: MS4 - DarkPhoenix - 03-06-2009

Is there any difference between MS4 and MS 3.0.3? I would like to know what are the advantages/disadvantages to each thanks.


Re: MS4 - Matt - 03-06-2009

DarkPhoenix Wrote:Is there any difference between MS4 and MS 3.0.3? I would like to know what are the advantages/disadvantages to each thanks.

Way too much to list. Why not just take a look at both versions of the source? Even MSE1 is better than 303.


Re: MS4 - Doomy - 03-06-2009

dark don't even bother using anything other then ms4


Re: MS4 - DarkPhoenix - 03-06-2009

Well MS 3.0.3 is the earliest release out which would give the user much more they can add without worrying about messy code. On the other hand MS4 would be optimized right away but it will have features included with it. I would like to know a general pro/con of each if anyone can do that for me :/


Re: MS4 - GIAKEN - 03-06-2009

Umm MS4 doesn't come with features...it's a fixed up version of all the previous crappy versions.


Re: MS4 - Rian - 04-06-2009

MS 303 Features:
Maps
Npcs
Items
Shops
Spells

MS4 Features:
Maps
Npcs
Items
Shops
Spells


Re: MS4 - Robin - 04-06-2009

MS4 programming standard:
6/10

MS3.0.3 programing standard:
2/10


Re: MS4 - DarkPhoenix - 04-06-2009

So MS4 is easier to program with?


Re: MS4 - Doomy - 04-06-2009

it has more standardize coding, it is easier to read and work though once you find out how to do it.
everything is in groups like the map editor stuff all the editors are in one section.
I say if your learning vb6 do ms4


Re: MS4 - DarkPhoenix - 04-06-2009

alright then ^^. MS4 it is.


Re: MS4 - Jacob - 04-06-2009

Have any more errors been found?


Re: MS4 - Tony - 05-06-2009

Here's one:

/warpto kicks admin for text modification


Re: MS4 - Jacob - 05-06-2009

To fix the warp issue, replace the "WarpTo" sub with this:
Code:
Public Sub WarpTo(ByVal MapNum As Long)
Dim Buffer As clsBuffer
    
    Set Buffer = New clsBuffer
    
    Buffer.PreAllocate 6
    Buffer.WriteInteger CWarpTo
    Buffer.WriteLong MapNum
    Call SendData(Buffer.ToArray())
End Sub

Updated the download.


Re: MS4 - Nean - 16-06-2009

lol, I love how I had to change the server and client ports to match, as well as make sure that both server and client SEP_CHAR and END_CHAR's match, before I could even login to MS4.

Also 3_79 lags like fuck for me.


Re: MS4 - Jacob - 17-06-2009

Nean Wrote:lol, I love how I had to change the server and client ports to match, as well as make sure that both server and client SEP_CHAR and END_CHAR's match, before I could even login to MS4.

Also 3_79 lags like fuck for me.

The first part he's talking about are in 3.78, they are fixed in 3.79.

I'll talk to you more to see what's going on with lag.


Re: MS4 - genusis - 18-06-2009

For the lag....

When you are by yourself the movement and everything is OK and working properly but if there are other players you see them jump all over the map.