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

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
Sky Demon  
#1 Posted : Tuesday, June 3, 2008 11:06:52 AM(UTC)
Guest
Guest
Joined: 7/31/2008(UTC)
Posts: 563

Was thanked: 1 time(s) in 1 post(s)
I am sorry and slightly ashamed in a wierd kind of way but, I am sorry. I if this doesn't start working soon, I will kill myself!

The problem is,
I have been trying to make a mod for C&C Generals that adds in the Carpet Bomb for the USA faction.
As easy as the mod seemed to me at the start in theory, actually making it work is another story!

This mod is actually the simplest thing in the world, all I wanted to do was add in the Carpet Bomb so it can be used by USA faction like any other Special Power. Despite it's simplicity, it has taken me at least 18 hours of messing with settings and fiddling around in loads of different files.

I could try and explain what I have done but it is so long and drawn out. I'd be here forever, and I aint in any state to sit here and type 200 words of how agrivated I am at it just simply not working after all my efforts!

I can only say I have tried my best at this. I have routed through all the visible needs for the Carpet Bomb to work.

The problems I can see at this point are:

1) The CommandButton on the Command Center is still visible and clickable from the start of the game even before you have bought the Science for it, although you cannot use it!

2) Even after buying the Science you cannot use the Carpet Bomb! It remains exactly the same as before you bought the Science!

3) The Shortcut I set up for it does not work either, even after buying the Science for it!

4) The description for the Carpet Bombs Science just says

Code:
Give my science a name!

Cost: 1

Please take the time to fill in my description located in Science.ini! Thanks a bunch.


Although, when I go into science.ini all I find is:
Code:
Science SCIENCE_CarpetBomb
  PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank3
  SciencePurchasePointCost = 1
  IsGrantable = Yes
[b]  DisplayName = SCIENCE:TempName
  Description = SCIENCE:TempDescription[/b]
End

I don't understand this at all. That is not the description it's self. That is the name of the description. Not the actual text shown! Someone please, can you tell me how to make my own description? I can't find anything in the .big files....

And please, I know it's great a pain but...When you reply back, can you please just try and tell me where I gone wrong and what needs to be corrected?
It would be really educational and helpfull for future problems such as this if I knew where I went wrong.
I won't know where I made my errors if you just post back and go "It's working now"

As I said, there is no point in my trying to explain what I done.
I think at this point it is much better for me to post the Mod so you can see it.


I always hate to simply come up to you guys and force it on you to help me with something I want.
I know from the sheer time and agrivation through trying to get this to work that it can be very boring and time consuming when searching through some endless text files.

I just want to let you know that I am very greatfull for any help and it won't go unoticed.

Thanks for reading all this! I can't thank you enough for helping me, I really am at a loss to why it aint working. I thought I covered every angle of this!

I look forward to your replies, and thanks again guys!Cool

Download Attachment: Carpet Bomb -Not Working.zip
17.77 KB

Edited by moderator Saturday, May 28, 2011 12:25:37 PM(UTC)  | Reason: Not specified

Sponsor
Offline Drummin  
#2 Posted : Tuesday, June 3, 2008 1:46:10 PM(UTC)
Drummin
General
C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffMaps Staff: Maps Staff MemberRed Alert Staff: Red Alert Staff Member
Joined: 12/11/2007(UTC)
Posts: 1,622
Location: CA, USA

Was thanked: 16 time(s) in 15 post(s)
Many times you can do a search of this forum to find the answers you're looking for. Me Myself and Pi had already worked through this problem for another member. Here's the map.ini file he made. Unzip the folder and add the map.ini file to your map.


Download Attachment: CarpetBomb.zip
1.66 KB

This is what the file contains.

--
Science SCIENCE_CarpetBombx
PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank3
SciencePurchasePointCost = 1 ; note that this means "not purchasable", NOT "free"!
IsGrantable = Yes
DisplayName = GUI:SuperweaponCarpetBomb
Description = CONTROLBAR:TooltipCarpetBomb
End

SpecialPower SuperweaponCarpetBomb
Enum = SPECIAL_CARPET_BOMB
ReloadTime = 150000 ; in milliseconds
RequiredScience = SCIENCE_CarpetBombx
PublicTimer = No
SharedSyncedTimer = Yes
ViewObjectDuration = 40000
ViewObjectRange = 250
RadiusCursorRadius = 100
End

CommandButton Command_CarpetBomb
Command = SPECIAL_POWER
SpecialPower = SuperweaponCarpetBomb
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = CONTROLBAR:CarpetBomb
ButtonImage = SSCarpetBomb
RadiusCursorType = CARPETBOMB
InvalidCursorName = GenericInvalid
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipCarpetBomb
End

CommandButton Command_CarpetBombFromCommandCenter
Command = SPECIAL_POWER_FROM_COMMAND_CENTER
SpecialPower = SuperweaponCarpetBomb
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = OBJECT:CarpetBomb
ButtonImage = SSCarpetBomb
RadiusCursorType = CARPETBOMB
InvalidCursorName = GenericInvalid
;ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipCarpetBomb
End

CommandButton Command_PurchaseScienceCarpetBomb
Command = PURCHASE_SCIENCE
Science = SCIENCE_CarpetBombx
ButtonImage = SSCarpetBomb
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
End

CommandSet AmericaCommandCenterCommandSet
1 = Command_ConstructAmericaDozer
4 = Command_CarpetBomb
5 = Command_A10ThunderboltMissileStrike
6 = Command_Paradrop
7 = Command_SpyDrone
8 = Command_EmergencyRepair
9 = Command_DaisyCutter
10 = Command_SpySatelliteScan
11 = Command_SetRallyPoint
12 = Command_Sell
End

Object AmericaCommandCenter
CommandSet = AmericaCommandCenterCommandSet
AddModule
Behavior = OCLSpecialPower ModuleTag_99
SpecialPowerTemplate = SuperweaponCarpetBomb
OCL = SUPERWEAPON_CarpetBomb
CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE
End
End
End

PlayerTemplate FactionAmerica
SpecialPowerShortcutCommandSet = SpecialPowerShortcutUSA
PurchaseScienceCommandSetRank3 = SCIENCE_AMERICA_CommandSetRank3x
End

CommandSet SpecialPowerShortcutUSA
3 = Command_A10ThunderboltMissileStrikeFromCommandCenter
2 = Command_ParadropFromCommandCenter
1 = Command_SpyDroneFromCommandCenter
4 = Command_CarpetBombFromCommandCenter
5 = Command_DaisyCutterFromCommandCenter
END

CommandSet SCIENCE_AMERICA_CommandSetRank3x
1 = Command_PurchaseSciencePathfinder
3 = Command_PurchaseScienceCarpetBomb
4 = Command_PurchaseScienceParadrop1
5 = Command_PurchaseScienceParadrop2
6 = Command_PurchaseScienceParadrop3
7 = Command_PurchaseScienceA10ThunderboltMissileStrike1
8 = Command_PurchaseScienceA10ThunderboltMissileStrike2
9 = Command_PurchaseScienceA10ThunderboltMissileStrike3
10 = Command_PurchaseScienceEmergencyRepair1
11 = Command_PurchaseScienceEmergencyRepair2
12 = Command_PurchaseScienceEmergencyRepair3
END


Ahh yes, looking at your signiture, you're still only using generals.
Maybe this file will give you some ideas.
As you can see from this file there are a number of things to do to add China CB to USA. Hope it helps.

Edited by moderator Saturday, May 28, 2011 12:25:49 PM(UTC)  | Reason: Not specified

Sky Demon  
#3 Posted : Wednesday, June 4, 2008 10:57:34 AM(UTC)
Guest
Guest
Joined: 7/31/2008(UTC)
Posts: 563

Was thanked: 1 time(s) in 1 post(s)
As you know I run C&C Generals only. And that is for Zero-Hour.

I must apologise though because I didn't tell you that this mod is not for a single map but for the whole game.
The mod still doesn't work...:(

Thanks for the feedback though.
Can anyone else help me out on this?

Edited by user Thursday, June 5, 2008 9:45:31 AM(UTC)  | Reason: Not specified

Offline Stewox  
#4 Posted : Thursday, June 5, 2008 11:47:53 AM(UTC)
Stewox
Major
Joined: 12/26/2006(UTC)
Posts: 457
Location: Slovenia

ummm yes , why all assume that always map.ini is used and single map modding ,

I thought that WHOLE GAME MODDING is standard , if i would modify single map i would tell(recently i was in this situation also)

i did not even opened map.ini , nor used WB , nothing ... but what , makes it more fun when you mod whole game ...IMO



What did you do sky demon ... dont make map.ini , delete it , now place all this in drummins post , to the each corresponding INI. When you se 3. ENDs , delete 2 , cause map.ini wants 2 extra , and normal haves 1. Sometimes you see 2 ends , that is where is an end of the subsection and the parent section , in code.

Anyways . that description , descriptlabel , or text , that is CODED in General.str (which works like ini(notepad) but not the same) ZH haves Zerohour.str .... That file is not officialy there but you can download it in public sources , this file is also used for correcting MISSING errors.

And how you know this code will not work for generals? try ...

Speaking of Generals ,

Why on earth you would run only Generals?

Edited by user Thursday, June 5, 2008 12:12:18 PM(UTC)  | Reason: Not specified

UserPostedImage
Sky Demon  
#5 Posted : Friday, June 6, 2008 7:06:39 AM(UTC)
Guest
Guest
Joined: 7/31/2008(UTC)
Posts: 563

Was thanked: 1 time(s) in 1 post(s)
Quote:
Why on earth you would run only Generals?


I would just run Generals because, my computer isn't good enough to run Zero-Hour!

And about the whole map.ini whatever you are on about.
Quite frankly your not being to descriptive in your posts.(I am sorry if English isn't your native language)

Does anyone know if 'Me myself and Pi' could shed any light on this?
Offline Drummin  
#6 Posted : Friday, June 6, 2008 7:39:19 AM(UTC)
Drummin
General
C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffMaps Staff: Maps Staff MemberRed Alert Staff: Red Alert Staff Member
Joined: 12/11/2007(UTC)
Posts: 1,622
Location: CA, USA

Was thanked: 16 time(s) in 15 post(s)
I believe I've done as Stewox suggested.
I downloaded the General.str file and added the code from my post above, removing the extra End tags. I loaded up the file below.

If you're already using a General.str file to make your Mod, then just add the Code from my post above removing those extra End tags. AT least that's what Stewox is saying.

Download Attachment: Generals.zip
47.03 KB

I've just gathered this information from other posts to try to help you. I don't run Generals so I haven't tested anything. I'm sure Me Myself and Pi can help you, but haven't heard from him in a bit.

Edited by moderator Saturday, May 28, 2011 12:26:26 PM(UTC)  | Reason: Not specified

Sky Demon  
#7 Posted : Saturday, June 7, 2008 8:30:47 AM(UTC)
Guest
Guest
Joined: 7/31/2008(UTC)
Posts: 563

Was thanked: 1 time(s) in 1 post(s)
That is very confusing to read through.
It doesn't answer many problems.

It's a .str file, no a .config file...?
I am very confused, it just seems to be a load of random lines of text and code.

I am trying to find the link to why the CarpetBomb CommandButton I added to the CommandCenter shows before the science is purchased.

Why the CarpetBomb still can't be used even after purchasing it's science.

Why the ShortcutFromCommandCenter doesn't work after purchasing the CarpetBomb.

Why the CarpetBomb Science description just says "Give my science a name!

Cost: 1

Please take the time to fill in my description located in Science.ini! Thanks a bunch."
Sky Demon  
#8 Posted : Sunday, June 8, 2008 10:36:05 AM(UTC)
Guest
Guest
Joined: 7/31/2008(UTC)
Posts: 563

Was thanked: 1 time(s) in 1 post(s)
Does anyone have any more information that could be more helpfull?

I am probably just missing out one little thing and it's not continuing on to the next thing.
KInd of like a script where you need certain things for it to work/start.

Please, I really really want this mod to work.
Offline CommieDog  
#9 Posted : Sunday, June 8, 2008 11:09:28 AM(UTC)
CommieDog
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: 8/3/2003(UTC)
Posts: 3,086
United States

Thanks: 445 times
Was thanked: 186 time(s) in 130 post(s)
I found the problem: you didn't modify AmericaCommandCenter to support the Carpet Bomb power. If you hadn't brushed off Drummin so quickly for not providing the exact code that you needed, you could have at least figured out what you were missing. In this case, you're lucky: the code is already in \Object\FactionBuilding.ini, but it is commented out. Uncomment it and the Carpet Bomb General's Power should work.
UserPostedImage
CommieDog: Because someone has to do your dirty work for you
Offline icewind  
#10 Posted : Sunday, June 8, 2008 11:26:26 AM(UTC)
icewind
Major
Joined: 12/10/2007(UTC)
Posts: 125
Location: Netherlands

Was thanked: 2 time(s) in 2 post(s)
Well I had the same problem once when I tried to put the Cruise missile strike in the game (it is there originally but unfinished Angry).
It a very hard thing to do and it took me about 10 hours.

The display name and description are rather easy to fix.

I assume you have FinalBig, use it to extract generals.csf (i think its in the ini's big) download csf editor, use it to open generals.csf and add the strings you need.

The fact that it doesn't work is harder to fix.

You first need to make sure that all the names are right (I know it's lame but it happens to me a lot).

Second, there are a lot more files needed for a science power as you would think.

I can't remember them all but I will download your mod and compare it with mine (I was able to get it working)

It will be back with more as soon as possible.
You can't blame me for my defeat, it's all the fault of my soldiers.

Making the web a weirder place, one forum at a time.
Derideal web comic. Try it, it's good.
Sky Demon  
#11 Posted : Monday, June 9, 2008 11:25:42 AM(UTC)
Guest
Guest
Joined: 7/31/2008(UTC)
Posts: 563

Was thanked: 1 time(s) in 1 post(s)
Yeah. I am sorry I dissmised you like that Drummin, you were only trying to help. I know it's really annoying when people just ignore you :(

I have just been a bit moody lately, my Mum & Dad have been really irritating.
I feel really bad about ignoring you now. I admit I was being ignorant and dissmissive, just looking for the easy answers.

Sorry guys :(
Offline Drummin  
#12 Posted : Monday, June 9, 2008 11:39:59 AM(UTC)
Drummin
General
C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffMaps Staff: Maps Staff MemberRed Alert Staff: Red Alert Staff Member
Joined: 12/11/2007(UTC)
Posts: 1,622
Location: CA, USA

Was thanked: 16 time(s) in 15 post(s)
No prob.

Did you do as CommieDog suggested and get it working?
Sky Demon  
#13 Posted : Monday, June 9, 2008 12:45:33 PM(UTC)
Guest
Guest
Joined: 7/31/2008(UTC)
Posts: 563

Was thanked: 1 time(s) in 1 post(s)
Yeah the CarpetBomb works like a treat now. Thanks all, you've been a reall help!

I really can't believe I didn't think of that, I mean there's so many thing you gotta go thtough to get it working. I just missed that "SpecialPower.ini" out..Black Eye

As I said, everything works now. Maybe one or two things to do with the actual Carpet Bomber itself I want to even out, but all is well.

However, I can't seem to get the Shortcut to work for it.
I have put it all in correctly on the CommandSet and everything.

I hate to repost and just ask you to fix it for me, I kind of feel selfish but I really don't know why this aint working.
It worked for me when I added in the SpySatellite Scans shortcut.
I don't know what could be wrong with the CarpetBomb shortcut I set upQuestion


Download Attachment: Carpet Bomb -Almost Working.zip
112.19 KB

Edited by moderator Saturday, May 28, 2011 12:27:00 PM(UTC)  | Reason: Not specified

Offline CommieDog  
#14 Posted : Monday, June 9, 2008 1:19:04 PM(UTC)
CommieDog
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: 8/3/2003(UTC)
Posts: 3,086
United States

Thanks: 445 times
Was thanked: 186 time(s) in 130 post(s)
It's possible that you exceeded the number of buttons that can be displayed on the shortcut sidebar (I remember it being rather limited in vanilla Generals). Try replacing the Spy Satellite shortcut button with the Carpet Bomb and see if it works.
UserPostedImage
CommieDog: Because someone has to do your dirty work for you
Sky Demon  
#15 Posted : Tuesday, June 10, 2008 8:33:25 AM(UTC)
Guest
Guest
Joined: 7/31/2008(UTC)
Posts: 563

Was thanked: 1 time(s) in 1 post(s)
I will have a look but I am sure that I set the amount allowed to 7 in PlayerTemplate.iniQuestion

I looked in the PlayerTemplate and had a play with a few other settings but the Shortcut still doesn't work.



**EDIT**
Success.
I finally managed to put in the Sciences proper description!Cool

The last thing on my tick off list for this mod is the Shortcut. I still can't get it working.

I have ruled out the allowed amount of special power shortcuts as the cause of it not working.
I checked the PlayerTemplate.ini and found I have indeed set it to 7 instead of the default 5.


For all I know there could be some stupid setting somewhere that says the Carpet Bomb can't have a ShortcutQuestion
It really does leave my baffled as to why this won't work.

The carpet bomb's commandbutton added to the Command Center -CHECK
The carpetbomb's shortcut added to the special power shortcut list -CHECK

It looks like this:

Code:
CommandSet AmericaCommandCenterCommandSet
  1  = Command_ConstructAmericaDozer
  4  = Command_CarpetBomb
  5  = Command_A10ThunderboltMissileStrike
  6  = Command_Paradrop
  7  = Command_SpyDrone
  8  = Command_EmergencyRepair
  9  = Command_DaisyCutter
 10 = Command_SpySatelliteScan 
 11 = Command_SetRallyPoint
 12 = Command_Sell
End

CommandSet SpecialPowerShortcutUSA
  1 = Command_SpySatelliteScanFromCommandCenter
  2 = Command_SpyDroneFromCommandCenter
  3 = Command_ParadropFromCommandCenter
  4 = Command_A10ThunderboltMissileStrikeFromCommandCenter
  5 = Command_EmergencyRepairFromCommandCenter
  6 = Command_DaisyCutterFromCommandCenter
  7 = Command_CarpetBombFromCommandCenter
END


Here's the mod so far.

Download Attachment: USA Carpet Bomb SpecialPowerFromShortcut Upgrade Mod.zip
180.22 KB

**EDIT**
So does anyone here have anymore ideas as to why it isn't working?

Edited by moderator Saturday, May 28, 2011 12:30:21 PM(UTC)  | Reason: Not specified

Sky Demon  
#16 Posted : Wednesday, June 18, 2008 6:56:13 AM(UTC)
Guest
Guest
Joined: 7/31/2008(UTC)
Posts: 563

Was thanked: 1 time(s) in 1 post(s)
I still can't get that flaming Shortcut to work, WTH is wrong with it?
Offline icewind  
#17 Posted : Wednesday, June 18, 2008 11:02:16 AM(UTC)
icewind
Major
Joined: 12/10/2007(UTC)
Posts: 125
Location: Netherlands

Was thanked: 2 time(s) in 2 post(s)
have you already tried replacing a old one (spy drone, etc.) with the carpet bomb.

I know you can edit the max buttons but I think that's an unfinished feature because I had the same problems.
You can't blame me for my defeat, it's all the fault of my soldiers.

Making the web a weirder place, one forum at a time.
Derideal web comic. Try it, it's good.
Sky Demon  
#18 Posted : Saturday, June 28, 2008 11:39:23 AM(UTC)
Guest
Guest
Joined: 7/31/2008(UTC)
Posts: 563

Was thanked: 1 time(s) in 1 post(s)
RESULT!
I replaced a lower Shortcut Commandset (Vehicle Repair) with the Carpet Bomb's and it worked perfectly.
I can now confirm that there is only ever an allowed maximum of 6 Special Power shortcuts allowed in C&C Generals. Even if you change the allowed amount in the 'PlayerTemplate.ini' it will just ignore anything above the 6th special power.

This is a victory, and a loss.
I am sad that there is only 6 special power shortcuts allowed. Isn't there anyway to make the number allowed higher?
Offline CommieDog  
#19 Posted : Saturday, June 28, 2008 1:15:14 PM(UTC)
CommieDog
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: 8/3/2003(UTC)
Posts: 3,086
United States

Thanks: 445 times
Was thanked: 186 time(s) in 130 post(s)
That's what I though. The limit is probably due to the UI in Generals (ZH has a much higher limit). I have an idea on how to help you, but I don't have access to my modding computer at this time. Do you think you could wait a week or so?
UserPostedImage
CommieDog: Because someone has to do your dirty work for you
Offline icewind  
#20 Posted : Sunday, June 29, 2008 1:52:50 AM(UTC)
icewind
Major
Joined: 12/10/2007(UTC)
Posts: 125
Location: Netherlands

Was thanked: 2 time(s) in 2 post(s)
The max shortcuts indeed relies on the GUI the, the option in the INI is only if you have less than the max. (I think in ZH its 11)
You can't blame me for my defeat, it's all the fault of my soldiers.

Making the web a weirder place, one forum at a time.
Derideal web comic. Try it, it's good.
Users browsing this topic
Guest (5)
2 Pages12>
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.