| 03-03-2003, 11:13 PM | #1 |
Heyas all, I asked this question a while back and didn't get any help, but it seems like there's some new blood here, so I'll ask again. As my sig suggests, I have been working on a WC3->WC2 TC and I have run into three stumbling blocks (if you don't count getting models/skins for the different units). The first is Ships, which the Exp pack takes care of nicely. The second is the fact that in WC2, you could only select 9 units at a time while in WC3 you can select 12. Does ANYONE know of a way to lower the amount you can select to 9 using triggers or MPQ editing. I had triggers that detected if you selected more than 9 units and then randomly removing the extras, but it actually takes a few seconds to remove them from the selection, allowing the player to put them into a control group and command them that way. The third and final problem is the food limit... I cannot raise it above 90. These problems are pretty much the only things stopping me from continuing work on my TC. Any help is appreciated and if I end up using your solution, you can bet your name will be in the credits. |
| 03-04-2003, 01:15 AM | #2 |
I have a feeling that the 12 unit selection is imbeded into WC3 and can't be changed by editing a file, and that triggers would be your only way to handle this. I may be wrong, but I haven't seen anything in regards to limiting the number of units that are selectable. As for the food supply, 90 is the max, but you can modify the food cost on your units to try and squeeze more room. If a unit is normaly 3 food, change it to 2, etc. |
| 03-04-2003, 01:33 AM | #3 |
Yes, except in WC2 all units cost only 1 food. AFAIK, you can't make a unit cost a pecentage of 1 food. I have also heard leaderboard solutions, but I didn't find them acceptable |
| 03-05-2003, 01:52 AM | #4 |
Hope this isn't the same as the leadboard ideas you mentioned: Not sure about the selection thing, but heres an idea on the food: when the supply gets about say 80, set food limit to supply used-80 and set an integer variable to the supply value. You can then use the integer to hold the real food value, for example when the supply next reaches 80 subtract another 80 and add 80 to your integer. Hence the total supply used is integer + current supply. ie: supply = 82 set integer =integer + 80 = 0+80 =80 supply = supply -80 (now 2) Total supply is supply +integer =80 + 2=82 supply again reaches above 80, say 81 set integer = integer + 80 = 80+80 =160 supply = supply -80 = 1 Total supply = 161 and so on.. When units die you can check, if supply is =0 remove 1 from the integer value, hence supply can still vary. As an afterthought this probably was the leaderboard suggestion, but I dont think there is any other way to show this, as the supply counter can only go to 90 i think, you may be able to use some kind of marker to show the extra value of the integer.. Sorry I can't be of much more help, not sure if there is some way to edit the max value of the supply counter in the mpq, if so you could set it to the correct value and use this method - just displaying integer +supply instead. Oh well thats my few brainstormed ideas, good luck, SheepOfDoom |
| 03-05-2003, 03:19 PM | #5 |
Thanks, SheepOfDoom, a better suggestion than some :gsmile: I don't think I'll use it, though... I really want XXX/YYY at the top. And also, I want the food max (the highest number food can go) to be 200 all the time, not the food cap (the amount of food you are currently producing). I want the food cap to correspond with the amount of Farms. I know you could set up another Int and do comparisons, yada yada, but it just wouldn't feel right :bgrun: I have tried editing the only .slk that mentions these values (unitmetadata.slk) but the only effect is now I can set units to produce/use more than 90 food (food max still doesn't go above 90). I changed the values in the L column (maxVal) from 90 to 200 for the entries in rows 17 and 19 (fused and fmade). Nothing works :( |
| 03-05-2003, 05:10 PM | #6 |
Guest | A simple suggestion is to show the food via the leaderboard, turn off the upkeep ( I think you can turn it on/off). Second you dynamically caclulate the current food, and set the food used to 0, except iff your dynamically caclulated food is too for the current food support. |
| 03-05-2003, 05:42 PM | #7 |
Come on element, here he comes with a solkution that whold work and you say it would'nt feel right? if you want to finish this you gotta try.... |
| 03-05-2003, 07:25 PM | #8 |
Aiursrage2, did you read my post? Perhaps the part about how I have already heard and discarded the leaderboard solution? Milkman, the whole point of my TC is that it is supposed to FEEL like WC2. If all I was doing was changing the names of units and making the WC2 maps in WC3, then maybe this solution would work... but I think it would feel janky if every so often, it looked like you weren't using any food or couldn't produce more. One way or another, this TC will get done |
| 03-05-2003, 07:59 PM | #9 |
Okey..... i see your point |
| 03-06-2003, 03:21 PM | #10 |
I'm only going to bump this once, then it's back to figuring it out by myself |
