josh3d2004
  • josh3d2004
  • 63.5% (Friendly)
  • Private Topic Starter
19 years ago
Is there a way to script science's like the a10 thunderstrike, moab, anthrax bomb, etc. (or a certain amount of money) so that when you go over a crate they are instantly given to you?

Also, is there a way that you can place a bomb in them for kind of a added bonus for fake ones so that it comes at a risk to try to take them. Or can this be done by trees? I've noticed the "if unitx is destroyed then grant sciencex to playerx" but I cant never get this to work with crates or tree's even though I name them and put the scripts in the plyrcivilian folder and have tried the neutral folder.

I think that would be awesome, have like a forest around one side with bombs in the trees haha or maybe cluster mines with upgrades/science's in them, or at the very center have a tree or crate with the upgrades. I don't want to do ini editing because I enjoy playing these maps online with friends without the dreaded hassle of dealing with missmatches and technical difficulties and such so I'm hoping this can be done through worldbuilder.

Or maybe a way for these science's to be given at the beginning of the game and give each team only 1 or 2 science/upgrade/gen promotion and disable superweapons. I think that would be a pretty cool game if the map was made right.

So, is the whole crate and/or tree idea possible? If so, can anyone give me an idea on how to do it?

Thanks
Sponsor
CG Apollos
19 years ago
I don't know too much about world builder scripting so I can't help you too much there, but a map.ini would work just fine since these would be very minor changes.

You could make the crate grant an object that dies nearly instantly which fires a weapon, grants an upgrade, and then grants a science because of the upgrade triggered (Similar to how the MOAB works on the USA side.). If you meant the bomb and science seperately, then simply get 2 crates doing 2 different things.

If you would like me to do this for you, tell me and I will do it as soon as I can.
josh3d2004
  • josh3d2004
  • 63.5% (Friendly)
  • Private Topic Starter
19 years ago


I don't know too much about world builder scripting so I can't help you too much there, but a map.ini would work just fine since these would be very minor changes.

You could make the crate grant an object that dies nearly instantly which fires a weapon, grants an upgrade, and then grants a science because of the upgrade triggered (Similar to how the MOAB works on the USA side.). If you meant the bomb and science seperately, then simply get 2 crates doing 2 different things.

If you would like me to do this for you, tell me and I will do it as soon as I can.

AuroraAlphaHL2 wrote:



Yes, I would love to see it. Is there a way you could point out in the script or make seperate scripts with just a few examples of what I need to do? Like in the crates: one for moab, a weapon, etc. If so, that would be awesome 😁 Thanks for the quick reply 😄
CG Apollos
19 years ago
Here is a map.ini I created in about 2 or 3 minutes:

Download Attachment: UserPostedImage map.zip 
962 Bytes

I didn't test it, but if you put the object 1500DollarCrate on the map and then have a unit collide with it, you should be able to gain the MOAB science. Put this in your map then play as USA and see if it works. I didn't make the bomb crate yet but that shoulden't be too hard to do, let's get the science working first.
josh3d2004
  • josh3d2004
  • 63.5% (Friendly)
  • Private Topic Starter
19 years ago
I tried it out but I get a "Technical Difficulties..." error that reads:

"You have encountered a serious error. Serious errors can be caused by many things including viruses, overheated hardware and hardware that does not meet the minimum specifications for the game. Please vists the forums at www.generals.ea.com for suggested courses of action or consult your manual for Technical Support contact information"

I've loaded 3 maps that I know for sure that work and placed a 1,500 crate on them and placed the map.ini within the map folder. Any idea why it would do this?
CG Apollos
19 years ago
Odd. Try this:

Download Attachment: UserPostedImage map.zip 
966 Bytes
josh3d2004
  • josh3d2004
  • 63.5% (Friendly)
  • Private Topic Starter
19 years ago
Just tried it and got the same error message. I'm gonna try making another map from scratch and messing around with it. I'll post later what happens. If you have any time before then, feel free to making a few more map.ini files, I'd really appreciate it and it would be awesome if we could get this working as I have tons of cool ideas for some maps that I want to try.

Ps. Do you think it has to do with that crate? maybe try the tree idea or a different crate or some other object? I know I'm relatively new to this and shouldn't be suggesting anything with lack of experience in the subject, but do you think it's worth a shot? Just an idea.
CG Apollos
19 years ago
Maybe. Like I said before, I rushed this and never tested it so I probably did something small wrong. I will look at it some more, test it so I can see what I did wrong, and get back to you soon hopefully.
josh3d2004
  • josh3d2004
  • 63.5% (Friendly)
  • Private Topic Starter
19 years ago


Maybe. Like I said before, I rushed this and never tested it so I probably did something small wrong. I will look at it some more, test it so I can see what I did wrong, and get back to you soon hopefully.

AuroraAlphaHL2 wrote:



I've been trying it since I got back and nothing seems to work although I've figured out some other things, like science's and how to gain them at the beginning of the game and such but I can't seem to understand the crate idea. I haven't worked on any map.ini files before so this is completely new to me. No matter what map I put it on, it gives me that dreaded error message. It's irritating as hell 💀
CommieDog
19 years ago

Maybe. Like I said before, I rushed this and never tested it so I probably did something small wrong. I will look at it some more, test it so I can see what I did wrong, and get back to you soon hopefully.

AuroraAlphaHL2 wrote:


I see that your AddModule blocks are missing End statements.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
josh3d2004
  • josh3d2004
  • 63.5% (Friendly)
  • Private Topic Starter
19 years ago


Maybe. Like I said before, I rushed this and never tested it so I probably did something small wrong. I will look at it some more, test it so I can see what I did wrong, and get back to you soon hopefully.

CommieDog wrote:


I see that your AddModule blocks are missing End statements.

AuroraAlphaHL2 wrote:



Where at? Is there a way you could edit the file and upload it for me to try or point out how to fix it? Any help would be greatly appreciated. 😁

edit; could this be the reason for the error message I received?
CG Apollos
19 years ago


I see that your AddModule blocks are missing End statements.

CommieDog wrote:

Ah, ok. I didn't test this but if it is just missing a few ends then try this:

Download Attachment: UserPostedImage map.zip 
926 Bytes
josh3d2004
  • josh3d2004
  • 63.5% (Friendly)
  • Private Topic Starter
19 years ago



I see that your AddModule blocks are missing End statements.

AuroraAlphaHL2 wrote:

Ah, ok. I didn't test this but if it is just missing a few ends then try this:

Download Attachment: UserPostedImage map.zip 
926 Bytes

CommieDog wrote:



I tried a map I made without the map.ini with a 1500 crate and I seen that the map worked, ai was building and saw the crate. So, I put the map.ini within the folder and right when you click "Play Game" it minimizes out of the game and shows the message and the game closes with the same error message. Do you think I have to change something in wordl builder? or like name the crate to a specific name or something? 😞
warskarz
19 years ago




I see that your AddModule blocks are missing End statements.

josh3d2004 wrote:

Ah, ok. I didn't test this but if it is just missing a few ends then try this:

Download Attachment: UserPostedImage map.zip 
926 Bytes

AuroraAlphaHL2 wrote:



I tried a map I made without the map.ini with a 1500 crate and I seen that the map worked, ai was building and saw the crate. So, I put the map.ini within the folder and right when you click "Play Game" it minimizes out of the game and shows the message and the game closes with the same error message. Do you think I have to change something in wordl builder? or like name the crate to a specific name or something? 😞

CommieDog wrote:

hey guy's i was reading on this and it sound like a very good idea, i sorry to say i dont have any in put on this but if it works and is ok with you i would like to use it as soon as you figure this out if so i will keep an i on your progress thanx