 |
|  |
 |
|  |
 |
|  |
 |
|
Mercator
|
 |
Sorekara no Nanimo
Jan 1970 time: 06:13
|
|
Am I too late? Otherwise you could send it over to me, and I'll see what I can do. It'll probably take a week or more before I've actually checked my mail again, solved the problem and resent it, though.
Some specifics on what could (or should) solve the problem: I don't know if you're familiar with Allard's "Hex Editing" doc? Anyway, there's a unit section in the scenario file, but you knew that, I guess. For every unit its civ number is stored. Those all have to be changed from barbarian (0?) to 2nd civ. And I believe apart from that you need to change the owner of the squares they're on, too (which is probably the problem you ran into, Gothmog, because I don't think there's more than one place for unit ownership info). Each square is assigned an owner (which determines the color of an airbase, for one), all squares of which the unit changes from barb to 2nd need to be updated too, I think.
|
|
|  |
 |
|
Allard HS
|
|
All very nice, but as far as my test results prove me, changing a unit ownership does not require the terrain ownership to be changed. Maybe that will force the game to a green unit on top of a white airbase, but who cares about that?
No, no, I was able to change a unit to another owner without any trouble at all. The easiest way to do it:
1) open the game with an hex editor
2) convert the x and y coordinates to hex, eg. (63,53) becomes 3F 00 35 00 (note the 00's are behind the values not in front of them, that's because they are inverted, so a square (300,500) would become 2C 01 F4 01 instead of 01 2C 01 F4)
3) search for that x and y coordinate in the file
4) the 8th byte is the ownership of the unit (counting the first coordinate number as the 1st byte)
This may seem a long and tedious process to do for 300 units, but in reality, as units created after each other are listed after each other, you need just jump down two lines and change the next unit.
To do this, set the length of a line to 13 hex per line, and also, of course, the units indeed need to be created after each other (control this by checking their id: when the reveal complete map is enabled, right click on a unit).
This is no doubt the fastest way to do it, most efficient too, as it has least chance of mistakes, and it works perfectly for me. no problem..
so, hope this helps..
|
|
|  |
 |
|
Allard HS
|
|
Techumseh, let me take the liberty of answering your question, though it may not have been intended to me..
Well, I maybe have no right to answer, as I do not knów the answer, but I will just tell what I think of it.
The thing is, a saved game can be hex edited, no problem, and the caravan commodity can be edited. All very simple. And the future can be edited in events, but all except this thing.
As information regarding the events are not stored there (except when embedded), and as units to be created later on therefore are also not stored, we can't look for this into the hex edited file.
Impossible therefore? Unless the events embedded into the saved game will allow this, (you know, the annoying things that delevents removes). But that has not been done before, and frankly, I don't have the time to do so.
But I don't have much hope for this anyway, and scenarios loaded don't include any embedded events, just saved games. Might be different for ToT, though.
Another, the more serious work-around option might be to create an editor to change the memory, but now we're talking about real programming. Maybe Jorrit can explain us more about that.
[This message has been edited by Allard HS (edited April 10, 2001).]
[This message has been edited by Allard HS (edited April 10, 2001).]
|
|
|  |
 |
|
Xin Yu
|
 |
Emeryville, CA, USA
Jan 1970 time: 21:13
|
|
First, make a back up file of rules.txt;
Second, change rules.txt so that road modifier is 1 and all units are spies, domain 3 units with move 127 and cost 10;
Third, hex edit the saved file and play as barbarian, move barb units so that they are not stacked and not close to the perticular civ's cities; Fourth, Change back to human civ, give yourself 30k and bribe them!
Last, change back to the original rules.txt.
|
|
|  |
 |
|
Angelo Scotto
|
|
Milan, Italy
Oct 1999 time: 05:13
|
|
Techumseh, Gothmog and Allard are right, these things are not possible... in classic Civ2.
But we were talking about Tot, right? well, then i'm happy to say you should be able to realize your event using CSPL (and BTW this is a VALID
reason to buy Tot instead of MGE but this is an old querelle...).
I would like to realize your event if you want, just send me an e-mail explaining exactly the kind of event you want to realize
(what causes those caravans to be created? and things like that).
Greetings,
Angelo
|
|
|  |
All times are GMT. The time now is 05:13. Apolyton Time is 00:13. |
top of page
|
| archivepost |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|