Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

4 Pages<1234>
Options
Go to last post Go to first unread
Offline mr_hymn_  
#21 Posted : Saturday, May 13, 2017 11:30:22 AM(UTC)
mr_hymn_
Major
Joined: 2/28/2017(UTC)
Posts: 410
Thailand
Location: Bangkok

Thanks: 63 times
Was thanked: 145 time(s) in 127 post(s)
Originally Posted by: acidbrain Go to Quoted Post
The magic happens in the .wnd files, study those files...
If im not mistaking the commandbuttons are implemented in ControlBar.wnd...


Yep I know that file I edit it and all button are messed up. Anyway I will try to understand them.

As below sample code I have no idea what it means.
Code:

FILE_VERSION = 2;
STARTLAYOUTBLOCK
  LAYOUTINIT = [None];
  LAYOUTUPDATE = [None];
  LAYOUTSHUTDOWN = [None];
ENDLAYOUTBLOCK
WINDOW
  WINDOWTYPE = USER;
  SCREENRECT = UPPERLEFT: 0 416,
               BOTTOMRIGHT: 799 599,
               CREATIONRESOLUTION: 800 600;
  NAME = "ControlBar.wnd:ControlBarParent";
  STATUS = ENABLED+BORDER+SEE_THRU;
  STYLE = USER;
  SYSTEMCALLBACK = "ControlBarSystem";
  INPUTCALLBACK = "ControlBarInput";
  TOOLTIPCALLBACK = "[None]";
  DRAWCALLBACK = "W3DGameWinDefaultDraw";
  FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
  HEADERTEMPLATE = "[None]";
  TOOLTIPDELAY = -1;
  TEXTCOLOR = ENABLED:  255 255 255 255, ENABLEDBORDER:  255 255 255 255,
              DISABLED: 255 255 255 255, DISABLEDBORDER: 255 255 255 255,
              HILITE:   255 255 255 255, HILITEBORDER:   255 255 255 255;
  ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 252 249 249 128, BORDERCOLOR: 255 252 252 255,
                    IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                    IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                    IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                    IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                    IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                    IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                    IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                    IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255;
  DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                     IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                     IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                     IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                     IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                     IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                     IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                     IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                     IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255;
  HILITEDRAWDATA = IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                   IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                   IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                   IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                   IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                   IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                   IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                   IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255,
                   IMAGE: NoImage, COLOR: 254 254 254 255, BORDERCOLOR: 0 0 0 255;
  CHILD
Offline acidbrain  
#22 Posted : Saturday, May 13, 2017 11:57:20 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Just draw it out, get the texture from the commandbar and figure it out, just check the coordinates, if others can do it you can do it too...:P

CommandButton01:
Code:

WINDOW
        WINDOWTYPE = PUSHBUTTON;
        SCREENRECT = UPPERLEFT: 223 494,
                     BOTTOMRIGHT: 273 538,
                     CREATIONRESOLUTION: 800 600;
        NAME = "ControlBar.wnd:ButtonCommand01";
        STATUS = ENABLED+IMAGE+NOFOCUS+WRAP_CENTERED+ON_MOUSE_DOWN;

The resolution is 800x600 so you can set out the whole window on paper by checking the coordinates.
Upper left 223, 494...so 223 to the right on the x-axis and 494 down on the y-axis is the top/left corner.
Lower right 273, 538...so 273 to the right on the x-axis and 538 down on the y-axis is the lower/right.corner.
This creates a 50x44 button

CommandButton02:
Code:

WINDOW
        WINDOWTYPE = PUSHBUTTON;
        SCREENRECT = UPPERLEFT: 223 545,
                     BOTTOMRIGHT: 273 589,
                     CREATIONRESOLUTION: 800 600;
        NAME = "ControlBar.wnd:ButtonCommand02";
        STATUS = ENABLED+IMAGE+NOFOCUS+WRAP_CENTERED+ON_MOUSE_DOWN;

Upper left 223, 545...so 223 to the right on the x-axis and 545 down on the y-axis is the top/left corner.
Lower right 273, 589...so 273 to the right on the x-axis and 589 down on the y-axis is the lower/right.corner.
This creates a second 50x44 button under the first button with a gap of 7 between them.

CommandButton03:
Code:

WINDOW
        WINDOWTYPE = PUSHBUTTON;
        SCREENRECT = UPPERLEFT: 278 494,
                     BOTTOMRIGHT: 328 538,
                     CREATIONRESOLUTION: 800 600;
        NAME = "ControlBar.wnd:ButtonCommand03";
        STATUS = ENABLED+IMAGE+NOFOCUS+WRAP_CENTERED+ON_MOUSE_DOWN;

Upper left 278, 494...so 278 to the right on the x-axis and 494 down on the y-axis is the top/left corner.
Lower right 328, 538...so 328 to the right on the x-axis and 538 down on the y-axis is the lower/right.corner.
This creates a third 50x44 button to the right of the first button with a gap of 5 between them.


The rest is up to you...:P

Edited by user Saturday, May 13, 2017 12:00:54 PM(UTC)  | Reason: Secret

Panem et kirkinses
thanks 1 user thanked acidbrain for this useful post.
elliesy on 5/14/2017(UTC)
Offline acidbrain  
#23 Posted : Saturday, May 13, 2017 12:20:32 PM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Maybe this will help...:P
WND Edit

I attached a file with C&C Utilities, the WNDEdit app is in there...
We cant thank DeeZire enough...:D

Greetz

Edited by user Tuesday, May 15, 2018 1:30:22 PM(UTC)  | Reason: Secret

File Attachment(s):
C&C Utilities.rar (1,865kb) downloaded 614 time(s).
Panem et kirkinses
thanks 2 users thanked acidbrain for this useful post.
mr_hymn_ on 5/13/2017(UTC), R.I.P on 7/18/2017(UTC)
Offline mr_hymn_  
#24 Posted : Saturday, May 13, 2017 12:21:11 PM(UTC)
mr_hymn_
Major
Joined: 2/28/2017(UTC)
Posts: 410
Thailand
Location: Bangkok

Thanks: 63 times
Was thanked: 145 time(s) in 127 post(s)
Thank you. I called that a good hint. that would help me a lot. I will try to change the commandbar too if possible.
Offline mr_hymn_  
#25 Posted : Saturday, May 13, 2017 12:23:24 PM(UTC)
mr_hymn_
Major
Joined: 2/28/2017(UTC)
Posts: 410
Thailand
Location: Bangkok

Thanks: 63 times
Was thanked: 145 time(s) in 127 post(s)
Hmmm why it crash every time I am trying to open. I did extract the files out.
UserPostedImage
Offline acidbrain  
#26 Posted : Saturday, May 13, 2017 12:24:47 PM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Originally Posted by: Mr_Hymn_ Go to Quoted Post
Thank you. I called that a good hint. that would help me a lot. I will try to change the commandbar too if possible.


Practice makes perfect, if you spend some time on it, dont give up and figure it out the feeling will be great if you succeed...

Panem et kirkinses
Offline acidbrain  
#27 Posted : Saturday, May 13, 2017 12:26:01 PM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Originally Posted by: Mr_Hymn_ Go to Quoted Post
Hmmm why it crash every time I am trying to open. I did extract the files out.

Windows 10?
Panem et kirkinses
Offline acidbrain  
#28 Posted : Saturday, May 13, 2017 12:28:51 PM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
I actually never modded the windows but i must say i am curious so im going to help you with it...
Panem et kirkinses
Offline mr_hymn_  
#29 Posted : Saturday, May 13, 2017 1:04:53 PM(UTC)
mr_hymn_
Major
Joined: 2/28/2017(UTC)
Posts: 410
Thailand
Location: Bangkok

Thanks: 63 times
Was thanked: 145 time(s) in 127 post(s)
Originally Posted by: acidbrain Go to Quoted Post
Originally Posted by: Mr_Hymn_ Go to Quoted Post
Hmmm why it crash every time I am trying to open. I did extract the files out.

Windows 10?


Gosh I am using windows XP. Too old I guess. I will install windows 10 tomorrow then.
Offline acidbrain  
#30 Posted : Saturday, May 13, 2017 1:29:12 PM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Originally Posted by: Mr_Hymn_ Go to Quoted Post
Originally Posted by: acidbrain Go to Quoted Post
Originally Posted by: Mr_Hymn_ Go to Quoted Post
Hmmm why it crash every time I am trying to open. I did extract the files out.

Windows 10?


Gosh I am using windows XP. Too old I guess. I will install windows 10 tomorrow then.


Was just a question no requirement for the app, i use windows 7 and it runs fine...
Panem et kirkinses
Offline acidbrain  
#31 Posted : Saturday, May 13, 2017 2:50:52 PM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
ZH
UserPostedImage

OFS
UserPostedImage

You also have to adjust the commandbar texture a bit btw...

Edited by user Tuesday, May 15, 2018 1:30:55 PM(UTC)  | Reason: Not specified

Panem et kirkinses
thanks 1 user thanked acidbrain for this useful post.
mr_hymn_ on 5/13/2017(UTC)
Offline qqqqqqqqqp  
#32 Posted : Saturday, May 13, 2017 4:36:38 PM(UTC)
qqqqqqqqqp
Major
Joined: 11/19/2012(UTC)
Posts: 371
United States
Location: everywhere but nowhere

Thanks: 19 times
Was thanked: 47 time(s) in 45 post(s)
Hmmm ini editor... idea:A++ I shall test this on a Windows ten. Windows xp is not bad its just everything getting to were it only works on newer OS which then leaves the older ones in the dark. But if you can upgrade I would say Windows 7 it was nice on my laptop... then I went to 10 and it broke the way my graphics card works :/

Edit: it appears to work fine on Windows 10. Don't have ini file on laptop

Edited by user Saturday, May 13, 2017 4:49:20 PM(UTC)  | Reason: Not specified

9Q_1P at your service. Moddin help and mod maker ranges from paradrop planes, aircraftcarriers and yes snow men with death lazer eyes

Want a peek? Visit this page
Advanced warfare
Offline Blbpaws  
#33 Posted : Saturday, May 13, 2017 5:07:09 PM(UTC)
Blbpaws
Administrator
C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffRed Alert Staff: Red Alert Staff MemberAll Stars Staff: All Stars Staff
Joined: 1/1/2003(UTC)
Posts: 6,526
Location: USA

Thanks: 3 times
Was thanked: 47 time(s) in 32 post(s)
Very neat!
UserPostedImage
Offline AdrianeMapMaker  
#34 Posted : Saturday, May 13, 2017 9:28:50 PM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
Well I Had the Same thing with Mr Hymn its crashes whenever i edit the wnd file

Btw Can u send me what should i change when i want to change the orange layout of the Vgen and i want to make it like Zero hour (Blue)
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline acidbrain  
#35 Posted : Sunday, May 14, 2017 1:29:09 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Well since i have zero experience with wnd files i did a little test.
I exchanged the ControlBar.wnd from fos with the original ControlBar.wnd from zh and this was the result...
UserPostedImage

Its a matter of making your own coordinates so it doesnt become a copy of fos, i did a bit of measuring and i think you can fit 18 buttons without adjusting the original stuff that much, the challenge is to adjust the texture without ruining it in the process, i can be wrong though, hope im not..:P

You can make the left hud a bit smaller, gives you 18 pixels extra room, by removing the gaps between the buttons you gain 30 pixels room, and the space btween the start of the row of buttons and the end is 7 pixels, resizing the buttons to 46 gives you 28 pixels extra room.
Load the commandbar texture into paint.net and create a new layer with a colored box on it with the size of all the commandbuttons so you can see how you have to adjust the texture...
Maybe you can even make 3 rows of buttons if you make the buttons even smaller...

Fun project btw, good challenge...

Greetz

Edited by user Tuesday, May 15, 2018 1:31:16 PM(UTC)  | Reason: Not specified

Panem et kirkinses
thanks 1 user thanked acidbrain for this useful post.
elliesy on 5/14/2017(UTC)
Offline elliesy  
#36 Posted : Sunday, May 14, 2017 4:03:03 AM(UTC)
elliesy
Major
Joined: 2/26/2016(UTC)
Posts: 223
Philippines
Location: Manila

Thanks: 242 times
Was thanked: 10 time(s) in 9 post(s)
Working for me .... window 7 WINROG (n) by neoropass 64- bit
Offline acidbrain  
#37 Posted : Sunday, May 14, 2017 5:04:50 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Well i managed to get 20 buttons on it, it is only a design in paint.net, going to implement all the buttons now...
Here is a pic of the new layout, started with the USA Controlbar...
UserPostedImage

Edited by user Tuesday, May 15, 2018 1:31:38 PM(UTC)  | Reason: Secret

Panem et kirkinses
thanks 1 user thanked acidbrain for this useful post.
elliesy on 5/14/2017(UTC)
Offline elliesy  
#38 Posted : Sunday, May 14, 2017 5:20:37 AM(UTC)
elliesy
Major
Joined: 2/26/2016(UTC)
Posts: 223
Philippines
Location: Manila

Thanks: 242 times
Was thanked: 10 time(s) in 9 post(s)
Originally Posted by: acidbrain Go to Quoted Post
Well i managed to get 20 buttons on it, it is only a design in paint.net, going to implement all the buttons now...
Here is a pic of the new layout, started with the USA Controlbar...
UserPostedImage

.
.
.
Nice Layout , Hey Sir Acid it is possible to attach in my vgen .

.
.
if possible How to i start ...:D

Offline acidbrain  
#39 Posted : Sunday, May 14, 2017 8:16:01 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Bad news...
Game doesnt like 20 buttons, you can add them to the .wnd file but when you go over 18 buttons in commandset.ini the game says "no way mister"...
Here is a pic, going to rebuild it to 18 buttons now...
UserPostedImage
Btw, the hardest part is adjusting the commandbar texture, took the most time, coding this stuff is meh...

Greetz

Edited by user Tuesday, May 15, 2018 1:32:11 PM(UTC)  | Reason: Secret

Panem et kirkinses
Offline acidbrain  
#40 Posted : Sunday, May 14, 2017 10:05:35 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
18 buttons finished, now comes the hard part, making the textures so you dont start crying when you see it...

UserPostedImage

Edited by user Tuesday, May 15, 2018 1:32:36 PM(UTC)  | Reason: Not specified

Panem et kirkinses
Users browsing this topic
Guest
4 Pages<1234>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.