Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: piggy on April 20, 2006, 03:29:43 PM

Title: ULX and gm_build_fortwars
Post by: piggy on April 20, 2006, 03:29:43 PM
Heya I am not to shore what to call this but basically u cant use ulx with fort wars as the menu corrupts half the buttons go missing u cant see what your doing then the timer for fort wars disappears and the teams bit and the points goes its screwed lol is it because there coded the same i.e. the both conflicting like or something ??? . It would be good to get this fixed or have a solution ASAP :D thx. 

--Piggy-- 



Title: Re: ULX and gm_build_fortwars
Post by: Megiddo on April 20, 2006, 06:36:43 PM
Thanks for the report. I'll look into it.
Title: Re: ULX and gm_build_fortwars
Post by: Megiddo on April 20, 2006, 06:50:33 PM
Works fine for me.
Title: Re: ULX and gm_build_fortwars
Post by: piggy on April 21, 2006, 03:12:42 AM
Hmm it screws all the gui up  for ulx and fort wars (u want a screeny ?)
its always done it and it does it to every one of my admins  :-\ it may be a problem on my server but I doubt that greatly due to the fact that it has been formatted about 40 times in the last few months and had a fresh install so I don’t think its any of the files

--Piggy--
Title: Re: ULX and gm_build_fortwars
Post by: piggy on April 21, 2006, 03:41:39 AM
No GUI Corruption
http://img83.imageshack.us/img83/1922/noguicorruption6bp.jpg

After opening up ulx
with GUI Corruption
http://img84.imageshack.us/img84/6415/withguicorruption3vx.jpg

Hope this helps

--Piggy--

Title: Re: ULX and gm_build_fortwars
Post by: Megiddo on April 21, 2006, 07:14:46 AM
Ah, it's when you open the menu? This is due to a limitation in GMod.

Anyways, it's an easy enough fix: Open up ulx_menu_base.lua and edit line 35 and 36 to be:
Code: [Select]

gCurKey[ i ] = gKeyOffset
gCurRectKey[ i ] = gKeyOffset

Then edit line 60 and 61 to be:
Code: [Select]
if gCurKey[ userid ] > gMaxOptions * 2 + 6 + gKeyOffset then -- Shouldn't be anymore than two menus blending in animation ( the extra six is from the title, next, and back text )
gCurKey[ userid ] = gKeyOffset

And lines 140 and 141 to be:
Code: [Select]
if gCurRectKey[ userid ] > 2 + gKeyOffset then -- Only two menus should be blending together
gCurRectKey[ userid ] = gKeyOffset + 1

Lastly, add this line to the start of the file:
Code: [Select]
gKeyOffset = 600
There you go :) If you have further conflicts just edit the offset.
Title: Re: ULX and gm_build_fortwars
Post by: piggy on April 21, 2006, 11:19:17 AM
Thank you for your help ;D

--Piggy--