Urban Terror Forums: Urban Terror's UI menus open-sourced - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
  • (5 Pages)
  • +
  • « First
  • 2
  • 3
  • 4
  • 5
  • You cannot start a new topic
  • You cannot reply to this topic

Urban Terror's UI menus open-sourced Rate Topic: -----

#31 User is offline   stollejay Icon

  • Account: stollejay
  • Country:
  • Joined: 04-June 12
  • Posts: 7

Posted 10 December 2014 - 11:26 PM

@OlGood:
None of this works.

Way with the pk3...
My pk3 looks like this:
ui > my .menu-files
ui > assets > my images

when i copy this pk3 into the ui folder there are no changes ingame.

The Way with the folder...
my folder in the q3ut4 folder looks like this:
ui > .menu-files (the original and my 2-3 modified files)
ui > assets > images (original and my images)

there are also no changes ingame.

Why it is not so easy like .pk3-maps? :(

Edit: Now i get it work :)
My fault was that i only rename the 0009.pk3 and dont delete it! Thanks at all :)

This post has been edited by stollejay: 11 December 2014 - 12:04 AM


#32 User is offline   Iye Icon

  •   head moderator   
    Co-Chief Community Moderator
  • Account: iye
  • Country:
  • Joined: 07-June 11
  • Posts: 1,054

Posted 11 December 2014 - 12:05 AM

pk3s def. work. just make sure you add at least 2z's infront of your filename
so you got like "zzModmenu.pk3"
(check my OPs files for ref)
this will make the loader load your pk3 after all others (if you dont have one with more z's)

ALSO your changes wont work/will be disabled after you connect to a sv_pure 1 server (every server is sv_pure 1)
so you can only try out ingame stuff on a local server (with sv_pure 1 of course), everything else will be filtered as an unpure loaded pk3.

This post has been edited by Iye: 11 December 2014 - 12:05 AM

Sorry for my bad spelling - I am still asleep. :)

|=| Iye's UrT Addon |=| Firefox Personas |=| Maps |=|
http://www.mediafire...vk3a602hcfg.jpg

#33 User is offline   OlGood Icon

  • Account: olgood
  • Joined: 12-May 10
  • Posts: 206

Posted 11 December 2014 - 12:23 AM

Ok let's start all over again. If you tried different things, you might want to delete your folder and start clean.

Step 1: Copy your game folder (UrbanTerror42), you don't want to modify the one you play with, since you are not authorized to play with modified game files.

Step 2: In your modUrbanTerror42/q3ut4, you'll find a zzpak009.pk3; everything concerning the menus is in there.

Step 3: Unpack or Open the pk3 with Winrar. The most convenient way I found to work on those menus is to Open the .pk3 without unpacking it.
Inside that .pk3, you have a "ui" folder. This folder is the only one you are interested in. It contains your .menus, as well as the "assets" folder, which contains the images used by the UI (cursor, background, etc...)

Step 4:
Once you are in the "ui" folder, feel free to open .menu files with a text editor (that, I guess, you know...)(I highly recommend Notepad++, it's free). DO NOT CLOSE THE ARCHIVE (Winrar)

Step 5:
Save your changes in the text editor. If you now go back to Winrar, a prompt should pop up, telling you that files in the archive have been modified, and asking you if you want to update the .pk3: Click Yes!

Step 6: Start the game. REMEMBER: You should be starting the game from your new UrT folder, the one you plan on working on.

WARNING: I strongly advice you start the game once before doing any modification, and Log Out. Even though I don't know how this works, there is a possibility you accumulate cheat points everytime you play with modified game files; I couldn't say if Frozen Sand handled that side of the story properly.


TIP:
After working a long time on this, here is the best way I found (Win7), step by step:
- After copying your game folder, pin UrT (the one from the new folder obviously) to the taskbar.
- Open your .pk3/ui
- Open the .menu you want to work on
- Select Winrar window (remember, do not close Winrar before saving/closing Notepad. You'll see why when you make the mistake, cause it will happen)
- Minimize everything else, so there is only Winrar and Notepad windows shown up
- Once Winrar is the active window, right-click in the taskbar, and click on "Show windows side by side"

You should have Winrar on the left of the screen, and Notepad on the right.
Everytime you save your .menu file in Notepad, as said before, a prompt will show up in the middle of the screen. The "Yes" being on the left side of this prompt, and Notepad on the right side, you'll save 1 click every time :) It is not much, but it's important when you do the same move every 15 seconds, literally...
Now you're gonna edit, save, click yes on the prompt, open the game. Check your work, spam ESC, and all over again :)

@Iye: By the time he gets to the in-game menus, believe me he'll know that ^^

This post has been edited by OlGood: 11 December 2014 - 12:41 AM


#34 User is offline   Iye Icon

  •   head moderator   
    Co-Chief Community Moderator
  • Account: iye
  • Country:
  • Joined: 07-June 11
  • Posts: 1,054

Posted 11 December 2014 - 12:38 AM

Probably. :) but an explanation always comes in nice. especially if you are new to this and have to consider whether its your fault, or something else.
Sorry for my bad spelling - I am still asleep. :)

|=| Iye's UrT Addon |=| Firefox Personas |=| Maps |=|
http://www.mediafire...vk3a602hcfg.jpg

#35 User is offline   OlGood Icon

  • Account: olgood
  • Joined: 12-May 10
  • Posts: 206

Posted 11 December 2014 - 12:41 AM

yeah yeah sure :p I was saying that for the lulz, as I was smiling thinking about the incoming headaches ^^

This post has been edited by OlGood: 11 December 2014 - 12:50 AM


bullet_loaderAdvertisement

#36 User is offline   stollejay Icon

  • Account: stollejay
  • Country:
  • Joined: 04-June 12
  • Posts: 7

Posted 11 December 2014 - 10:42 AM

Thanks Iye & OlGood for you Help. Now it got it all work :)

#37 User is offline   OlGood Icon

  • Account: olgood
  • Joined: 12-May 10
  • Posts: 206

Posted 11 December 2014 - 11:06 AM

my pleasure. Feel free to contact me on TeamSpeak or IRC (you'll find me) if you have any questions or if you need help/are stuck on something. Same goes for everybody else by the way. You guys come ask me, it's always a pleasure to help, assuming I have spare time at that moment of course.

#38 User is offline   Clear Icon

  •   former FS member   
    Programmer
  • Account: clear
  • Main tag: 6th|
  • Country:
  • Joined: 16-August 11
  • Posts: 121

Posted 13 December 2014 - 05:08 AM

View PostFleuv, on 09 December 2014 - 06:30 PM, said:

Nice, but not many people will contribute without a friendly API or at least something like "How to start developing for .."

Especially debugging, I wonder how it is done?



View Poststollejay, on 10 December 2014 - 07:25 PM, said:

Hello,
i have a short Quastion. I have edit some .menu Files and some Images but now? What i need to do that i can test/use my UI Style in the Game?

It would be cool if any can say me that :)


I've written a brief introduction to menu editing which you can find in the repository here. It is by no means comprehensive, but it might help you to get started, and answer some questions you might have.

#39 User is offline   stollejay Icon

  • Account: stollejay
  • Country:
  • Joined: 04-June 12
  • Posts: 7

Posted 13 December 2014 - 01:56 PM

Thanks Clear.
Can you please Write a list with all variable too that can be used?

Then i ask me if there is any border-radius or something like that.
I try some like "border-radius", "borderradius" etc. but i dont get it.

#40 User is offline   Clear Icon

  •   former FS member   
    Programmer
  • Account: clear
  • Main tag: 6th|
  • Country:
  • Joined: 16-August 11
  • Posts: 121

Posted 13 December 2014 - 03:37 PM

View Poststollejay, on 13 December 2014 - 01:56 PM, said:

Thanks Clear.
Can you please Write a list with all variable too that can be used?

Then i ask me if there is any border-radius or something like that.
I try some like "border-radius", "borderradius" etc. but i dont get it.

In the references section I linked to a website that has all that stuff: https://linux.ucla.e...enu-single.html

  • (5 Pages)
  • +
  • « First
  • 2
  • 3
  • 4
  • 5
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942