HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Two Questions....

09-30-2002, 03:18 AM#1
Guest
First of all, How do you make the computer actually do something when your runing a custom map. Situation. I have a map where the computer starts out with a hall, a barracks and 5 peons and two foot soldiers. I have other triggers, so it turned melee map off. I can't get them to go into a campaign AI where they actually build, attack, train, etc. I tried, running AI scripts map.ai, human.ai, and a bunch of others. I also tried giving units commands. That worked, but that's all they did. I need some help.

And my second question is about game cacheing! I cannot get that to work. I have map1 and map2. Here's what I have so far:

Event
When player 1 leaves the game with victory

Action
Create Game Cache from map1
Game Cache Store Hero
Game cache save Hero

Then map 2

Event
Map Initialization

Action
Create Gamecache map1
Game Cache Restore Hero

I exported my custom hero that I'm moving from map to map. I've tried changing things around I've tried everything that I can think of......Thanks in advance for your help!!

-Anime Fanatic-
09-30-2002, 04:11 AM#2
Guest
maybe i shall answer this two question for u
1)
AI is not sumthing that is easily done in few minutes
firstly , set loccation on where you want the building to be build
like build a hall beside near goldmine
next think of when you want to build the hall
ok for hall example , you want em to build at start of map and when the hall is destroyed.

so here is the trigger

Event :
map initilaztion(however it is spell)
Hall dies(or use unit left region which might be better)

Condition :
Gold of Computer = xxx( at least the minimum cost for hall)

Action :
-Issue order of (whichever peasant you want) build hall at watever location you want



2nd for you cache thing

your custom unit , is it in second map ?
09-30-2002, 04:16 AM#3
Guest
Yep, the custom hero is in the first map and the second map

-Anime Fanatic-
09-30-2002, 07:02 AM#4
Guest
Quote:
Originally posted by Anime Fanatic

And my second question is about game cacheing! I cannot get that to work. I have map1 and map2. Here's what I have so far:

Event
When player 1 leaves the game with victory

Action
Create Game Cache from map1
Game Cache Store Hero
Game cache save Hero


A) you need the .w3v extension
B) you're supposed to save the Cache, not the Hero. Storing the Hero already saves it to the cache.
10-01-2002, 05:42 AM#5
Guest
I already had the right extension. And I saved the cache, and it still doesn't work!! I think that the game cacheing feature is really, really buggy. I've seen it work, and yet, when I try to apply the exact same trigers. in the exact order, it doesn't work....This is annoying, can anyone help????
10-01-2002, 01:59 PM#6
Guest
Im never having any problems with it. Maybe you shouldn't do the player leaves with victory thing.. to me that sounds like too late to save the data. Maybe you should do the game cache actions BEFORE the scenario is ended in a victory. At least thats the way i do it. You can also save the data with a trigger halfway the scenario for example, I think the 'leaves' event is already too late.
10-01-2002, 04:37 PM#7
Guest
Perhaps if you showed us your exact triggers, instead of something generalized, we can find your mistake.
10-02-2002, 02:45 AM#8
Guest
Here's my trigers:

Map1:

Event: map initialization

Action:
Game Cache create game cache from map1.w3v

Game Cache store 'hero' in thechosen of heros in last created game cache

Game Cache save last created game cache

Map2:

Event: map initialization

Action:
Game Cache Create a game cache from Map1.w3v

Game cache Restore thechosen of heros from last created game cache for player1 at player1 start location facing 0.00

What am I doing wrong?
10-02-2002, 03:08 AM#9
ChronOmega
you arnt tring game cache on b.net right? cause it wont work there
10-02-2002, 03:15 AM#10
Guest
nope, this is a single player map/campaign....

Help!?!? This is really annoying, I don't know what I'm doing wrong.....

Thanx in advance!

-Anime Fanatic-
10-02-2002, 04:00 AM#11
dataangel
Finish the first map, then open your war3 folder and find the .w3v file. If it's not there something is stopping the cache from saving (i.e. waiting until after victory).
10-02-2002, 04:09 AM#12
Guest
I tried that....I changed it around (see above) The maps are in the War3/maps folder, so it should work. The triger I have in there to start the next map automatically works fine, It's just that no hero appears from the first map....ie the game caching is glitchy and doest work half the time.....:nono:

-Anime Fanatic-
10-02-2002, 05:12 PM#13
Guest
Maybe you can't store a hero at map initialization? Try saving after 0 seconds, or somewhere in the middle of the game?
10-03-2002, 02:49 AM#14
Guest
Tried after 10 sec, and in the middle of the game, still no go.....emote_confused

-Anime Fanatic-
10-03-2002, 01:52 PM#15
Guest
Game Cache store 'hero' in thechosen of heros in last created game cache

Game cache Restore thechosen of heros from last created game cache for player1 at player1 start location facing 0.00


if you're exactly using this, it wont work. If you choose to store the unit "hero" in "thechosen of heros" you should also restore "hero" from category "thechosen of heros".

Right now you store the unit "hero" in the category "thechosen of heros", and you restore the unit "thechosen" from category "heros"

The unit/category should be the same in store and in restore.