New compile strange error!

JamieShinra

Dedicated Member
Dedicated Member
Nov 21, 2007
18
0
27
Mir 2.3 1024x768 Client Need Help

Now I am trying to work on a 1024x768 client but I need a euromir style interface I will show you how mine looks, its completely messy! If anyone knows how to line it up correctly please let me know.

The buttons are also really out of place if you know how to fix it please let me know.

Images00.bmp







---------------------------
M2server
---------------------------
SizeOf(THuman) 6604 <> SIZEOFTHUMAN 4358
---------------------------
OK
---------------------------

What is causing this error when loading m2server.exe after a fresh compile.
 
Last edited:

Primal

LOMCN VIP
VIP
Jun 28, 2004
1,756
102
289
think its in either grobal2 or mshare

just search for SIZEOFTHUMAN
should say like
SIZEOFTHUMAN := 4358
change it to the 6604 and recompile
 
Upvote 0

JamieShinra

Dedicated Member
Dedicated Member
Nov 21, 2007
18
0
27
Thanks, figured it out after a bit of messing.

Now I am trying to work on a 1024x768 client but I need a euromir style interface I will show you how mine looks, its completely messy! If anyone knows how to line it up correctly please let me know.

Images00.bmp
 
Upvote 0

mStation

Golden Oldie
Golden Oldie
Oct 29, 2003
2,042
69
235
♫♪♫ ♦♥♠♣ ♀♂♀
i really don't know how to help but someone hopefully will be able.. what i can just say that it looks like the hp and the sun/moon images have offsets from the left and right part of the screen and probably from the top of the screen.. if you find those offsets you can push them down for 168pixels and you would fix them.. are the other buttons of the interface working?
 
Upvote 0

Primal

LOMCN VIP
VIP
Jun 28, 2004
1,756
102
289
i really don't know how to help but someone hopefully will be able.. what i can just say that it looks like the hp and the sun/moon images have offsets from the left and right part of the screen and probably from the top of the screen.. if you find those offsets you can push them down for 168pixels and you would fix them.. are the other buttons of the interface working?

Correct they all have offsets in fstate, the otger buttons r invisible until u click them so will need moving too
 
Upvote 0

mStation

Golden Oldie
Golden Oldie
Oct 29, 2003
2,042
69
235
♫♪♫ ♦♥♠♣ ♀♂♀
just for curiosity, what source are you trying to compile? lemon or phili?

i heard it was really difficult to get the 1024x768 but it seems you managed to get the first part quite easily.. what did you do? search for 800x600 and changed only that?
 
Upvote 0

JamieShinra

Dedicated Member
Dedicated Member
Nov 21, 2007
18
0
27
just for curiosity, what source are you trying to compile? lemon or phili?

i heard it was really difficult to get the 1024x768 but it seems you managed to get the first part quite easily.. what did you do? search for 800x600 and changed only that?

The source is DiamondM2 2.3

I followed some guides on here, to get 1024x768 support. Then I went about fixing item pickup and spell casting. Everything is working brilliantly all is displaying correctly. Now I just need to find where to move the buttons down a bit as there all in the correct place apart from Mailbag Marriage Logout And Exit
 
Upvote 0

JamieShinra

Dedicated Member
Dedicated Member
Nov 21, 2007
18
0
27
Sorry for double post I nearly have some of the buttons in the correct place for 1024x768

If anyone can help me out please respond :)

Code:
   //Client Interface Button Locations
   DMyState.SetImgIndex (g_WMainImages, 8);
   DMyState.Left := SCREENWIDTH div 2 + (SCREENWIDTH div 2 - (409 - 243)){503};
   DMyState.Top := 105;  //65
   DMyBag.SetImgIndex (g_WMainImages, 9);
   DMyBag.Left := SCREENWIDTH div 2 + (SCREENWIDTH div 2 - (407 - 282)){682};
   DMyBag.Top := 99;  //48
   DMyMagic.SetImgIndex (g_WMainImages, 10);
   DMyMagic.Left := SCREENWIDTH div 2 + (SCREENWIDTH div 2 - (405 - 322)){722};
   DMyMagic.Top := 89;  //38
   DOption.SetImgIndex (g_WMainImages, 11);
   DOption.Left := SCREENWIDTH div 2 + (SCREENWIDTH div 2 - (405 - 364)){764};
   DOption.Top := 75; //31
 
Upvote 0