PDA

View Full Version : THIS THREAD IS REALLY REALLY IMPORTANT TIMO



Inferno
August 5th, 2009, 11:24 AM
I need to add 2 menu options under "game options" in yoyov2. Both of these buttons need to either wake a script or change a global boolean.

The first button will say "Optimize Map"
The other button will say "Re-Sync Client"

The first button will remove a lot of scenery from the map so if a player is getting bad frame rate it should help with that.

The second will reset the clients to is_server false and delete any vehicles spawned on the client side (which is bad mkay)

Timo your good with halo menus right? HALP ME! I've never edited menus before but I need to learn today.

EX12693
August 5th, 2009, 11:56 AM
Look, Yoyo leaves TODAY! WE NEED THAT MENU!!

Masterz1337
August 5th, 2009, 01:49 PM
Rip from coldsnap, rename the buttons?

.Wolf™
August 5th, 2009, 02:10 PM
Nuthing going on here..No...So if you dont get it..It wont be realesed?

Inferno
August 5th, 2009, 02:11 PM
Rip from coldsnap, rename the buttons?
The problem is that kornman00v2 crashes for me. I can't get to edit the menus. I need someone to help me fix this or someone who knows how to edit menus.

EX12693
August 5th, 2009, 05:17 PM
Um... Timo?

Sever
August 5th, 2009, 05:22 PM
Um... Timo?Yes, Timo (http://www.modacity.net/forums/member.php?u=18).

Inferno
August 5th, 2009, 05:30 PM
Does anyone else know anything about UI's. I'm about to go post at halomaps. FFS.

EX12693
August 5th, 2009, 05:31 PM
Wo rly? Post the map? Or help...

Inferno
August 5th, 2009, 05:34 PM
http://forum.halomaps.org/index.cfm?page=topic&topicID=28160

This.

edit-

Delta helped me get the fixed mongoose done. The yohog passenger seat is fixed as well. I'm going to go make some easter eggs while I wait for help.

EX12693
August 5th, 2009, 05:36 PM
Eggeses! I already found 2...

Pakar
August 5th, 2009, 05:38 PM
Wait.. so as soon as you get the UI thing done, you are going to release it today? Wow.. :) 2 big releases in the same week, only thing that would make it better, if grunts sandtrap was finished this week :iamafag:

Sinow
August 5th, 2009, 05:38 PM
I'll do them, if you still need them. Not that hard, probably will take me no more than half an hour.

Timo
August 5th, 2009, 05:46 PM
All you need to do is add two more child widgets to the ui\shell\multiplayer_game\pause_game\game_options_ list.ui_widg... widget. Just duplicate two of the child widgets already present - be sure to keep the vertical offset consistent, so they don't sit ontop of eachother.

The quickest way for you to do what you want is to just take an existing button and modify it (grap the one you duplicated above). Then change the new child widgets you created to the names of your modified widgets. You'll want it to just run a script (under event handlers) instead of opening another widget (what the exisiting widget will do). Delete all the existing event handlers, and just create two with the event type "A Button" (enter key) and "Left Mouse" Enter the script name in the field that's a few boxes down.

The next thing you'll want to do is open up this string list:
ui\shell\multiplayer_game\pause_game\pause_game_op tions
And add another two strings - the names for the two new widgets. Then under "more text box parameters" in both your new widgets change the stringlist index to the number of the string you want it to display.

Finally open up both your widgets in FireDragon's widget editor - it allows you to run scripts via event handlers. Just open up the two widgets in the program, and under event handlers for each event check the run script box.

That should be all. This pause box won't be the right size - if you want to tool around with it open up "ui\shell\multiplayer_game\pause_game\pause_game_bk d" widget. You need to increase its b bound down enough to stretch it out over the two new buttons.

I would do this for you now but I need to take off to class in a few minutes - which is why what i've said might be confusing. I won't have time to do it today, but i'll be free tomorrow afternoon to do it for you if you like.

Sinow
August 5th, 2009, 05:49 PM
I'm already done. If you want me to upload, just say it, unless you want to do it yourself.

Inferno
August 5th, 2009, 05:50 PM
Alright guys if you can do this contact me on xfire (wankzta) or AIM (infernoxpyro)

Do it NOW.

Sinow
August 5th, 2009, 06:35 PM
http://www.mediafire.com/download.php?jwdqim2oinm

Merry Christmas. :)

Inferno
August 5th, 2009, 06:39 PM
Give this man +rep. Large quantities of it.

EtrUzioN
August 5th, 2009, 08:50 PM
Sinow i love you!

[No Homo]

Inferno
August 5th, 2009, 09:21 PM
We are still having problems though. As soon as the menus were installed we got a whole new unkwown error on the map.

The command (object_teleport (list_get (players) # ) ) <flag> ) is causing a crash about 30 seconds after you use it.

Halp! :saddowns:

English Mobster
August 5th, 2009, 09:36 PM
Make a teleporter netgame flag. Set its flag index to whatever. You can have more than 2 receiver nodes for teleporters...