| 09-18-2002, 10:58 PM | #1 |
In the Trigger Editor, I can set the food limit... kinda. I use the Player - Set Property action to do this: Player - Set Player 1 (Red) Food max 200. But the food still caps out at 90. I can successfully set the Food Max anywhere between 0 and 90, but if I set it above 90, the limit remains at 90. The Food Max property still contains the value 200 (I checked using Game - Text Message (Auto-Timed)), but it still doesn't allow me to use more than 90 food. This is very frustrating, as I am working on a WC2 TC and this is my only foreseen roadblock. On a side note, when setting the Food Max to a negative value, you get a really weird Food Max value (42,949). It also took me a minute, but i figured out that the "Food Cap" property is actually your potential food limit (i.e., if you have 3 farms, each providing 10 food, this value would be 30). I have taken a look at the .slks and .txts in war3.mpq, but I couldn't find the answer to my problem. I also took a look at the .j scripts, but no luck there. If anyone could figure this out, it would be very appreciated. |
| 09-19-2002, 05:44 AM | #2 |
Guest | there is no proper work around for this yet. The best that you can do is to lower the food usage of the units, or to use an action to set the toal food usage lower than what is actually being used (ie setting Food Used to 0 lets the player start over again). |
| 09-19-2002, 01:03 PM | #3 | |
Quote:
|
| 09-19-2002, 02:50 PM | #4 | |
Quote:
LOL, yeah, I thought it could have been more than just 42,949 because when I set my Food Used to a 3-digit number, I only saw 429 as the Food Limit. Just curious, how did you find out the complete number? If you used a trigger, perhaps the property you used could be used to actually CHANGE this number (to something more useful... like 200 :D) |
| 09-19-2002, 09:53 PM | #5 |
Well, I did some more snooping into war3.mpq, and I found that in Units\UnitMetaData.slk there is a row for "ufma" (Food Made) that lists its maxValue as 90. I changed this to 200, saved the .slk, put it back into the .mpq, but nothing is changed when I test my map. I feel like I'm pretty close to figuring this out. Someone please help! :) EDIT: Look for "ufma" or "fmade" |
| 09-19-2002, 09:57 PM | #6 | |
Guest | Quote:
Use WinMPQ to pop that file into your actual Map File, then try it. But whenever you save the map, you HAVE to inject the edited file back into your map. |
| 09-19-2002, 09:58 PM | #7 |
I shouldn't need to inject it into my map, as I am actually putting it into war3.mpq |
| 09-19-2002, 10:08 PM | #8 | |
Guest | Quote:
Yes, I know, but I would give it a shot anyways. Also, sometimes editing certain things just do not work because of one thing or the other. |
| 09-19-2002, 10:28 PM | #9 |
if you put it in your war3.mpq, it wont work in multiplayer, and also may cause desynch on bnet games... |
| 09-19-2002, 11:23 PM | #10 |
it's also generally a better idea to put it in war3patch.mpq :P |
| 09-20-2002, 12:33 AM | #11 | |
Guest | Quote:
It shouldn't matter what you set this to. Unless I'm mistaken UnitMetaData only controls what the World Editor allows you to edit. If you upped the cap on this field, and then edited a unit to have higher than 90, when you finally played the map the hardcoded engine should still cap your food at 90. If the cap is hardcoded, and indeed it seems to be, then only a patch is going to change things without someone hacking the executable. Care. |
| 09-20-2002, 01:36 AM | #12 |
Random: I did try after you suggested it, but no luck :( ZZzz: I don't really intend to play it on BNet or anywhere else but during my LAN Parties and at home by myself ;) Dataangel: I don't have war3patch.mpq (Did this come with the update? I'm still running 1.00) :confused: Heaven: I was still able to up the Food Max in the Editor before I edited UnitMetaData.slk. If what you say is true, however, Blizzard should release a patch SOON :p |
| 09-20-2002, 02:29 AM | #13 | |
Guest | Quote:
ACK! Get 1.02! That way you get war3patch.mpq... Many a thing can be chnaged in that file. |
