Jump to content


Photo

Help me PLz


  • Please log in to reply
18 replies to this topic

#1 Russian

Russian
  • New Members
  • 9 posts

Posted 23 August 2004 - 06:38 PM

:ninja: Hi, I want to make a mod for C&C Generals Zero Hour. I want to add a new general (Russian General), but I am stuck, can some one plz tell me how to add a new general in Zero Hour.

Thnx,
Russian :blink:

#2 AdmiralGT

AdmiralGT

    title available

  • Members
  • 1,702 posts
  • Location:Bristol, UK
  • Projects:Petrolution

Posted 23 August 2004 - 06:44 PM

There is a really helpful tutorial over at GenDev. You can see it here.

http://gendev.origin...anguard/faction

If you look at how the exisiting Generals are coded then you can see how to code your new one.

#3 Russian

Russian
  • New Members
  • 9 posts

Posted 23 August 2004 - 06:46 PM

THNX very much.
I really appriciate.
Thnx mate. :ninja: :blink:

#4 Russian

Russian
  • New Members
  • 9 posts

Posted 23 August 2004 - 07:30 PM

I cant find Commandbarscheme.ini I searched very good, can anyone help plz?

#5 AdmiralGT

AdmiralGT

    title available

  • Members
  • 1,702 posts
  • Location:Bristol, UK
  • Projects:Petrolution

Posted 23 August 2004 - 07:42 PM

It should be in INIZH.big under Data\Object\ControlBarScheme.ini

#6 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 24 August 2004 - 07:02 PM

Thnx, I tryed everything but just cant see my general in drop down menu

#7 Russian

Russian
  • New Members
  • 9 posts

Posted 25 August 2004 - 03:26 PM

Just not working :(

#8 AdmiralGT

AdmiralGT

    title available

  • Members
  • 1,702 posts
  • Location:Bristol, UK
  • Projects:Petrolution

Posted 25 August 2004 - 03:34 PM

Whats the problem with it? Is it not showing up in the Player Select Screen? If you want to post up the code you've done then I will take a look at it to see if I can find the problem.

#9 Russian

Russian
  • New Members
  • 9 posts

Posted 25 August 2004 - 07:11 PM

Ok Thnx

#10 Russian

Russian
  • New Members
  • 9 posts

Posted 25 August 2004 - 07:22 PM

These are the fully codes, plz look at the attachments on this site for full overview http://members.home....ussianpridewars

Edited by Russian, 25 August 2004 - 07:33 PM.


#11 AdmiralGT

AdmiralGT

    title available

  • Members
  • 1,702 posts
  • Location:Bristol, UK
  • Projects:Petrolution

Posted 25 August 2004 - 07:49 PM

The Problem lies in the fact that you havent added any spaces in your code at the start of lines. If you look at the existing code in each file you'll see in some lines you need to put some spaces at the start (normally 1 or 2). If you look at where the creators put spaces, you need to add spaces too.

I can see how you made the mistake since there are no spaces in the tutorial but your pieces of coding need to have the same look as the existing code.

#12 Russian

Russian
  • New Members
  • 9 posts

Posted 25 August 2004 - 08:36 PM

Thnx for helping, I modifyed the files but I still get an error when opening zero hour. The modifyed files are on http://members.home....ussianpridewars
Can u please look at them and maybe test them and help me out with the problem there is. :sad:
Thnx,
Russian

#13 AdmiralGT

AdmiralGT

    title available

  • Members
  • 1,702 posts
  • Location:Bristol, UK
  • Projects:Petrolution

Posted 25 August 2004 - 08:46 PM

The Problem lies in the fact that you didnt add the SCIENCE_Russia in Science.ini so in PlayerTemplate.ini it doesnt understand what SCIENCE_Russia is and so crashes.

#14 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 26 August 2004 - 11:44 AM

Can you give me an example what to add in science?

#15 AdmiralGT

AdmiralGT

    title available

  • Members
  • 1,702 posts
  • Location:Bristol, UK
  • Projects:Petrolution

Posted 26 August 2004 - 03:12 PM

Science SCIENCE_Russia

  PrerequisiteSciences = None

  SciencePurchasePointCost = 0 ; note that this means "not purchasable", NOT "free"!

  IsGrantable = No

End


#16 Russian

Russian
  • New Members
  • 9 posts

Posted 26 August 2004 - 05:36 PM

Thnx, but the game still crashes ( I can see it is starting and then it crashes).
Can you please look at the new files and test them, maybe you find the error. Files at http://members.home....ussianpridewars
Thnx mate,
Russian

#17 AdmiralGT

AdmiralGT

    title available

  • Members
  • 1,702 posts
  • Location:Bristol, UK
  • Projects:Petrolution

Posted 26 August 2004 - 07:21 PM

Firstly you havent added the spaces in the CommandSet. I took the liberty of correcting that.

It now produces a new error. Firstly in the RussiaCommandCenterCommandSet the First line reads Command_ConstructRussiaDozer but you havent got a CommandButton of this name.

Also, the game will keep crashing until you put those Objects into a INI file (The Objects from CommandButton.ini, the stuff that its making) since the Command Button will try to build something but wont be able to find the object.

I suggest you just copy other units and rename them to your own things (eg RussiaDozer, RussiaTank) since this will at least allow you to check that your faction actually works.

Edit, forgot to add, attached is the fixed CommandSet file.

Attached Files


Edited by AdmiralGT, 26 August 2004 - 07:22 PM.


#18 Russian

Russian
  • New Members
  • 9 posts

Posted 26 August 2004 - 07:44 PM

Thnx mate I am going to try the thing you said tomorrow, then I reply or it helped.
Thnx very much for helping.

#19 NVShacker

NVShacker
  • New Members
  • 17 posts

Posted 26 August 2004 - 09:09 PM

BTW, I don't think a / character is legal in commandbutton. Might be though.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users