Jump to content


Photo

<TriggeredBy> for upgrades, and UI question


  • Please log in to reply
8 replies to this topic

#1 Boomerang Python

Boomerang Python

    Only War Mod Leader

  • Hosted
  • 2,370 posts
  • Location:Umeå, Sweden
  • Projects:Only War, Only War 2
  •  Colonel-Commissar

Posted 17 July 2009 - 05:59 PM

Alright so basically i was just wondering what the <TriggeredBy> options are for an upgrade? And if there is one that triggers the upgrade automatically from the start of a game or when a specific building is built perhaps?

Also, I've been struggling with getting some custom commandbars ingame, but they simply won't show up, the closest I've managed is making the original commandbars transparent.. :)
Any hints as to what one should do and think about?


/Cheers, Boomer.

Edited by Boomerang Python, 17 July 2009 - 07:34 PM.

My DeviantArt - Check it out.
Posted Image
My Wii code: 6472 3114 4930 8707

"Om du kan stå, när alla andra sviktar
och sen klandras du för att just du står rak
Om du kan tro på ditt när andra riktar
sitt välbekanta tvivel mot din sak

Om var minut av nitti sen kan fyllas
med verk av dig som giltigt räknats ner
min vän, som jordens konung ska du hyllas
men du är också man, och det är mer."

#2 Stygs

Stygs
  • Members
  • 99 posts

Posted 17 July 2009 - 10:33 PM

And if there is one that triggers the upgrade automatically from the start of a game or when a specific building is built perhaps?


<GrantUpgradeCreate
				id="ModuleTag_AddMotherShipUpgrade"
				UpgradeToGrant="Upgrade_MotherShipBuilt" />

Gives you the upgrade as soon as the object with this code is build

#3 Boomerang Python

Boomerang Python

    Only War Mod Leader

  • Hosted
  • 2,370 posts
  • Location:Umeå, Sweden
  • Projects:Only War, Only War 2
  •  Colonel-Commissar

Posted 18 July 2009 - 12:18 PM

Awesome, thanks man.
My DeviantArt - Check it out.
Posted Image
My Wii code: 6472 3114 4930 8707

"Om du kan stå, när alla andra sviktar
och sen klandras du för att just du står rak
Om du kan tro på ditt när andra riktar
sitt välbekanta tvivel mot din sak

Om var minut av nitti sen kan fyllas
med verk av dig som giltigt räknats ner
min vän, som jordens konung ska du hyllas
men du är också man, och det är mer."

#4 Boomerang Python

Boomerang Python

    Only War Mod Leader

  • Hosted
  • 2,370 posts
  • Location:Umeå, Sweden
  • Projects:Only War, Only War 2
  •  Colonel-Commissar

Posted 22 July 2009 - 12:45 AM

Any ideas on the UI bit?
My DeviantArt - Check it out.
Posted Image
My Wii code: 6472 3114 4930 8707

"Om du kan stå, när alla andra sviktar
och sen klandras du för att just du står rak
Om du kan tro på ditt när andra riktar
sitt välbekanta tvivel mot din sak

Om var minut av nitti sen kan fyllas
med verk av dig som giltigt räknats ner
min vän, som jordens konung ska du hyllas
men du är också man, och det är mer."

#5 GodSun666

GodSun666

    Marching Trough The Eternal Fields Of Chaos!

  • Banned
  • 1,439 posts
  • Location:The Netherland @ Nod HQ!
  • Projects:Fast Fun And Crazy for Red Alert 3

Posted 22 July 2009 - 12:47 PM

Well, as far as i know with command and conquer 3 i made an quick ui mod. Just edited some files and checked it ingame. It seems that the game uses several images for one button orso. So you need to edit like 3 files for 1 thing to happen. And if you want to move the files and such you need todo it code wise. I cannot help you code wise though..
для матери Россия! Советский Союз победит! Америка может облизывать мои яйца
Posted Image
Posted Image

#6 Boomerang Python

Boomerang Python

    Only War Mod Leader

  • Hosted
  • 2,370 posts
  • Location:Umeå, Sweden
  • Projects:Only War, Only War 2
  •  Colonel-Commissar

Posted 20 December 2009 - 03:25 PM

Right, reviving another 4+ month old topic..

I'm gonna be tampering with trying to get my custom ingame sidebar/commandbar working again, however, it's invisible... I'm guessing I've forgotten to add something to the mod.xml or something..

Maybe I've forgotten to define what commandbar texture the specific faction should use? No idea where you do that btw (probably forgotten :p)

I've managed to get a custom main menu working sort of though, but that was just a simple job of replacing the original textures.

Here's a pic of the ingame commandbar/sidebar if that'll help:

Posted Image



I appreciate ANY and all responses to this conundrum of mine, however farfetched they may be.
My DeviantArt - Check it out.
Posted Image
My Wii code: 6472 3114 4930 8707

"Om du kan stå, när alla andra sviktar
och sen klandras du för att just du står rak
Om du kan tro på ditt när andra riktar
sitt välbekanta tvivel mot din sak

Om var minut av nitti sen kan fyllas
med verk av dig som giltigt räknats ner
min vän, som jordens konung ska du hyllas
men du är också man, och det är mer."

#7 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 21 December 2009 - 04:24 PM

A little more background info would be helpful. I can try to remember that stuff when I'm at the other computer later, but:
1) do the textures actually exist?
2) are they at the right spot in the directory structure?
3) are they properly referenced?
4) did you fiddle with anything else that might've messed things up (e.g. UI geometry stuff)?

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#8 Mighty BOB!

Mighty BOB!

    Deranged Weasel

  • Members
  • 419 posts
  • Location:California, USA

Posted 10 January 2010 - 09:55 PM

I don't remember, but are those tga files? Is there an alpha on them?
WOL nick: migtybob

We are living in a post-common sense society.


#9 Boomerang Python

Boomerang Python

    Only War Mod Leader

  • Hosted
  • 2,370 posts
  • Location:Umeå, Sweden
  • Projects:Only War, Only War 2
  •  Colonel-Commissar

Posted 20 January 2010 - 01:11 PM

I had just put in

<Include type="data" source="DATA:OnlyWar2/Data/AptUI/MainMenu.xml" />

in my mod.xml for all the 2d things, and it started working when i changed it to

<Include type="reference" source="DATA:OnlyWar2/Data/AptUI/MainMenu.xml" />

go figure..
My DeviantArt - Check it out.
Posted Image
My Wii code: 6472 3114 4930 8707

"Om du kan stå, när alla andra sviktar
och sen klandras du för att just du står rak
Om du kan tro på ditt när andra riktar
sitt välbekanta tvivel mot din sak

Om var minut av nitti sen kan fyllas
med verk av dig som giltigt räknats ner
min vän, som jordens konung ska du hyllas
men du är också man, och det är mer."




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users