View Full Version : Utility for playing scenarios in hotseat!!!
Crash757 Jan 13, 2006, 12:52 PM Our wishes have been fulfilled, Gyathaar has made utility that allows playing scenarios in hotseat! :thumbsup: :thumbsup: :thumbsup:
The idea is simple - create singleplayer game, save the first turn and then use the utility to convert some savegame's AI players that u want to human players.
Here's the description and quick 'how-to-use' from utility's creator Gyathaar himself:
To limit the use for cheating, it will only work for a game from the first turn of a game, and only if there is no admin password, and the no cheat flag is not set.
unpack the zip file into a dir of your choice (you need the zlib1.dll there too)
Create a single player save you want to convert, take note of what number in list the civs you want to make playable are.. first choice on list is number 0, and is what is normally played by humans except in scenarios.
start a command line shell (Start -> Run -> cmd )
cd to the dir you made and run:
hotseat "path to savefile you want to convert" list of civ numbers to make player playable
Eg: hotseat "c:\civ4\saves\mysave 4000BC.Civ4SavedGame" 1 5
this will convert the 2nd and 6th civ in the list into human playable (1st one is number 0).. the numbers can be from 0 to 18, where 18 is barbarians..
the converted file will be outputted as hotseat.Civ4SavedGame in the same dir as the hotseat.exe, so you will have to move this file to the hotseat save game folder and you prolly want to rename it too afterwards.
All the thanks goes to Gyathaar, i just did bit of testing and made this thread ;) Enjoy :) :goodjob: :crazyeye:
Note: Don't try playing barbs - the game will just froze.
*edit* Removed old version. Check next post for the new one.
*edit2* ABOUT DESCRIPTION ABOVE - description is about version 1.0, there will be new one posted, when i'll test the current version.
Gyathaar Jan 13, 2006, 01:06 PM Made a new version that is slightly more userfriendly... (in addition to taking command line options like before it also prompts you for filenames and so on )
This version also allows converting files to pbem saves, so I changed the name for the util to saveconvert.
It seems that for mods that normally require you to restart the client to load them, you have to open the saves by doubleclicking them, else civ4 crashes during the restart (atleast for me)
version 2.1 removed after 57 downloads
version 2.2 removed after 422 downloads
version 2.3 removed after 31 downloads
v2.1: updated to work on earth1000AD saves.
v2.2: added ability to change victory conditions and dificulty levels.
v2.3: bugfix for issue where utility sometimes created corrupt saves.
v2.3b: repacked the file as a zip file instead of a rar file
Raider62 Jan 18, 2006, 01:35 PM Is there a way to change victory conditions??? I only want Conquest. When I restarted it had all the conditions. any work around?
Gyathaar Jan 18, 2006, 02:35 PM Is there a way to change victory conditions??? I only want Conquest. When I restarted it had all the conditions. any work around?
Hmm.. no sure.. I will have to look into that
Raider62 Jan 18, 2006, 02:41 PM Thanks tried worldbuilder but couldnt find anyway to change the conditions. Other that that, Thanks so much for making this fix. It was great till I saw the victory conditions. Anyhow I am sure there has to be a way to make it just conquest and then it will be perfect!!! Thanks again !!!
Gyathaar Jan 18, 2006, 11:03 PM Added options to change the victory options..
Also added ability to change the difficulty levels for each civ.. notice that an AI playing at settler difficulty will be harder than an AI playing and noble (and an AI playing at deity will be easier)
Raider62 Jan 19, 2006, 12:00 PM That totally rocks. I put this fix right up there with Hark's memory fix!!! Thanks a lot Gyathaar!!!!This totally changed my opinion of Civ 4. Was having tech issues but screw it can live with them for now. Thanks again man that is awesome work.
You should get an award for making this fix, workaround, miracle. lol thanks again
Asjo Jan 23, 2006, 09:37 AM Yeah, I enjoyed this as well, although you might want to change the guidelines after the new version. Took me 30 minutes to figure out. Actually, I was close to giving up, only to find that I had used the wrong drive letter to specify where the file was.
I know it can be a fine line to walk, but I would really like the ability to change all AIs to human players and then change this back (which can be done with 'retire' in main menu as I understand), and then change the game to a single player game so that you can save it as a scenario. I understand this provides a possibility of cheating in hotseat, but it would really be priceless to the ones making scenarios, especially if you end up in a situation in the game where you find the perfect opportunity to make some changes to improve the game or make it into a good scenario. Or, say, you play a game with your mate, but his must discontinue his participation. This leaves you is a very vulnerable position as he was your trusted ally, and now you still want to continue this great game, but know you will die instantly without some reinforcement.
The use of this tool would be much greater with a few changes, given a few loopholes. However, I find that there must be some way to mark games so that you can know whether you partner has cheated.
kevjm Jan 25, 2006, 11:18 AM The instructions weren't that clear, haven't actually got it to work yet... please, clearer instructions, thanks :goodjob:
Gyathaar Jan 25, 2006, 08:04 PM Sadly i am really bad at explaining stuff like that, and putting time into making a userfriendly interface is even further from what I can do...
Probably easiest if some other user who has figured out how to use it explains how to use it :)
Robo Magic Man Jan 25, 2006, 09:00 PM Wait, can't you just open the .py file of the scenario in notepad, change singleplayeronly=1 to =0, load the scenario as a mod, and then play multiplayer and edit game options from there? Why is a program needed?
Gyathaar Jan 25, 2006, 11:43 PM For direct IP, Internet and LAN multiplayer games you can do that..
But for hotseat and PBEM there is no option to load a scenario file when you start up
(If you try to load a mod first, then hotseat and PBEM will be greyed out)
Asjo Jan 26, 2006, 12:13 PM Gyathaar, what do you think of the suggestion I made? Is it impossible to think of such modifications to the tool? Or maybe that is something I should ask Crash757 about?
Also, here is the simple way to use the tool:
First, open command prompt by typing 'cmd' in the run menu
Go to the directory where you have Civilization IV and run saveconvert.exe
Once you start saveconvert.exe simply write the path to your CIV IV single player savegame. Placing the savegame on the root of your c-drive or something the like would be the easiest thing to do as you would only have to type a very short path.
Now, put '1' for hotseat. Just press enter next if you don't want to enter a name for the hot savegame created (thus it will be hotseat.civ4savedgame in the Civ IV folder) - if you do put a name, remember the .civ4savedgame file extension. Then choose the civlizations you want to change into human players. When you are done changing AI's into human players just press enter and the process is done and the file is created.
Crash757 Jan 26, 2006, 06:58 PM Or maybe that is something I should ask Crash757 about?
As i stated above, i did only testing and made this thread, nothing else. I just don't have skills to make (or edit) such utilities myself.
Btw, nice to see some comments and suggestions coming up, i knew people will like this utility ;)
mathphysto Jan 28, 2006, 05:52 PM I'm having trouble with the output of the utility for a scenario that requires a restart when run. When I load the converted save file, I get a load screen (as normal) before arriving at an empty title screen (w/ Earth in the background and big Civilization IV up top). It then just sits there doing nothing, with no text boxes, menus, or anything else. It does this whether I try loading it by double-clicking on the file (as suggested above) or by going thru the menus as normal.
I should note that if I run the saveconvert but do not change any AI to humans, the outputted save file runs normally - so the problem only occurs when I try to have multiple human players (which is obviously a problem for us trying to play hotseat!)
Any suggestions?
Gyathaar Jan 28, 2006, 06:02 PM I'm having trouble with the output of the utility for a scenario that requires a restart when run. When I load the converted save file, I get a load screen (as normal) before arriving at an empty title screen (w/ Earth in the background and big Civilization IV up top). It then just sits there doing nothing, with no text boxes, menus, or anything else. It does this whether I try loading it by double-clicking on the file (as suggested above) or by going thru the menus as normal.
I should note that if I run the saveconvert but do not change any AI to humans, the outputted save file runs normally - so the problem only occurs when I try to have multiple human players (which is obviously a problem for us trying to play hotseat!)
Any suggestions?
Sadly I have no clue why this is happening.. you get the exact same behavior as when I try to load the save directly.
For me however it works if I doubleclick save.. I also think it works if I first load that scenario i single player, then go back to main menu, then go into multiplayer->direct ip, and then try to load the hotseat game.
Hopefully the next patch will have more support for playing scenarios in hotseat so you wont have to struggle so much with this :)
Asjo Jan 29, 2006, 07:13 AM Gyathaar, ignoring my comments, eh? ;)
Gyathaar Jan 29, 2006, 10:34 AM Gyathaar, ignoring my comments, eh? ;)
Its just that the marking of saves would be a lot of work since the only way I can think of is adding a message in all the players event logs :)
Asjo Jan 30, 2006, 02:43 PM Allright, just noticed that you hadn't answered my question the first time around. Since this is volountary work, you have already done plenty. I see a lot of potential in the idea, but, of course, if there is no way to work around it without putting up hours there's not much to do.
SweetBoy19 Feb 07, 2006, 12:45 PM Heyyy
It's perfect :cool:
Thank you Gyathaar! :goodjob:
Firstly I had some problems about make it work :D but the most because I did mistakes about writing well the folder direction :lol:
It's really simple:
download the Gyathaar's zip file and save for example in a folder into "my documents" then when you save single game to convert to hotseat, save it in this folder
then run cmd and type there: cd C:\Documents and Settings\.....\My documents\folder name (which contains the unziped Gyathaar's files and the single game map to convert) then intro
PD: the \.....\ would be usually the computer's user name, but it depends on the computer and in the windows language, and also the whole direction may be diferent, for example, my windows is in spanish, then i have "Mis documentos" in the place of "My documents", to know perfectly the folder's direction, make visible the direction bar like if it was internet explorer, and then go to the folder, and copy the same direction in cmd after cd, also in my computer when I run cmd, it is already on C:\Documents and Settings\..... and I just have to type the continuation, but to be more sure write the whole direction WITHOUT any writing mistake, if it says some error, I'm sure it must be for some unsawn writing mistake
and in the next line type: hotseat Single game saved game.Civ4SavedGame 1 2 3 (1 2 3 would be 4 players playing: 0 (single game already playing) + 1 (player 2) + 2(player 3) + 3 (player 4)
PD: if your saved name is for example: Albert then --> Albert.Civ4SavedGame + 1 2 3 ... (which you want to convert to humans, note that 0 is first player, 1 is 2nd player, etc)
in this example there would be 4 human players playing in hotseat + IA players if you made the map for more players who will be computers
if you want only 2 players, then only type 1 after saved game file:
hotseat Single game saved game.Civ4SavedGame 1 [/I]
I explained it in the longest way because if somebody never used cmd it is not that easy, but when you are used to cmd then you will be fast
The unique problem I see in hotseat is all of my friends want to be last player :D because the last is the unique who can see the computer's movements, and if some computer attack first players or invade city, they can't see what happened, and in their turn they might see some city lost
but this problem was already in Civ 3
anybody know if there is some option that make other players see what's happening after last human player turn??
PD: puedo traducir la explicacion es espaņol si no lo entendeis
GrendelS Feb 13, 2006, 05:35 PM Our wishes have been fulfilled, Gyathaar has made utility that allows playing scenarios in hotseat! :thumbsup: :thumbsup: :thumbsup:
The idea is simple - create singleplayer game, save the first turn and then use the utility to convert some savegame's AI players that u want to human players.
Would be great to have this for PBEM as well. I could kick a certain game developer that they removed this feature after the third installment.
regards,
Grendel
Gyathaar Feb 14, 2006, 01:17 AM Would be great to have this for PBEM as well. I could kick a certain game developer that they removed this feature after the third installment.
regards,
Grendel
It does work for pbem too.. you get an option to convert to pbem instead of hotseat...
I believe the game will have buildt in support for scenarios in both hotseat and pbem in the next patch thou
GrendelS Feb 14, 2006, 02:19 AM Hmm, I tried it with sweetboys explanation, but there's no file created anywhere. The program went through,closed and I kept looking. Not in c:/ , not in the save games folder... I guess it's a stupid user error, but I couldn't tell you what went wrong.
Gyathaar Feb 14, 2006, 02:30 AM The save is created in same directory as you put the tool in (unless you specify another dir when you create the savegame.. like c:\pbem.civ4savedgame )
GrendelS Feb 16, 2006, 06:41 AM The save is created in same directory as you put the tool in (unless you specify another dir when you create the savegame.. like c:\pbem.civ4savedgame )
thx, but after I clicked on it, the file disappeared !!?? (never seen something like it under Windoze)
Something else I just pmed you: What happens if I try to set up a PBEM game from the converter after adding 18 civs in single player? Does it work at all?
ciao
Grendel
Gyathaar Feb 16, 2006, 06:49 AM thx, but after I clicked on it, the file disappeared !!?? (never seen something like it under Windoze)
Sounds weird.. perhaps your antivirus program or something didnt like it being created?
GrendelS Feb 16, 2006, 10:34 AM Sounds weird.. perhaps your antivirus program or something didnt like it being created?
That's what I thought, too, but I keep my hands from bloatware like Norton, and my Antivir PE never did anything even remotely similar. I tried it again today, and I worked fine, so... you made a dedicated PBEM gamer happy. :goodjob:
Caesar Maximus Mar 09, 2006, 05:38 AM Hello,
is now possible to play scenarios that are not starting from 1st turn?
Or the limitation is still up?
Gyathaar Mar 09, 2006, 11:36 AM doesnt matter what turn the scenario start in.. it checks for how many turns the game has been played since the scenario started.
Black Whole Mar 10, 2006, 07:41 AM Can anyone send a whole example? I tried it very often but it always says 'Failed to ...' and I want to play some mods in hotseat!
Black Whole Mar 11, 2006, 01:37 PM Can anyone send a whole example? I tried it very often but it always says 'Failed to ...' and I want to play some mods in hotseat!
I can convert the files now but... THEY DON´T WORK! I tried it several times but ican only see the main menu for some seconds and then it crashes to desktop! Does anyone know what the problem is?
Asjo Mar 12, 2006, 03:45 PM Well, me and my friend had great fun with a scenario on a huge map I made. It had 18 civilizations and was full of units. We took the first 10-15 turns with a lot of war and action, all the time saving. When we go back and want to load the game we find out that the three last saved of ours won't work (and no autosaved working either), only the saved from the point before that. When we loaded nothing would happen for the first 15 minutes and just a bagground picture of the earth would show - after that it crashed. Only if being inside another savegame when loading the actual loading screen would show up, although the result would be the same.
So, something in the savegame must have been corrupted. We played the scenarion and it happened again. The question is whether it's a problem with big games in civilization (that we reached certain limits while playing or the game became too big to happen), something that happened while making/saving the scenraio in worldbuilder or something caused by this utility. I just wanted to mention it since it has discouraged us to try to make another game since and waste a lot of resources getting it the way we want. That effectively stops me from playing the game, too, because I would only play it with really big maps and many nations.
Gyathaar Mar 12, 2006, 03:54 PM It appears some people get corrupted saves when they play huge maps into later ages.. possibly they run out of memory or something and that cause the savefile compression to fail or something.. dont know.
Dont think ut has something to do with this util, since I have see some people report this problem on normal saves too.
Hopefully next patch will get though QA soon so you wont have to use this util to play hotseat/pbem scenarios
Gyathaar Apr 10, 2006, 04:49 PM fixed a bug where the util sometimes created corrupt saves when the original saves were quite large.
TheWusel Apr 10, 2006, 04:54 PM Cool! Thank you for your work. A few people and me play a gigantic worldmap (217x119)as a pbem. I was only able to transfer the scenario with your programm.
gboker Apr 12, 2006, 06:19 PM Made a new version that is slightly more userfriendly... (in addition to taking command line options like before it also prompts you for filenames and so on )
This version also allows converting files to pbem saves, so I changed the name for the util to saveconvert.
It seems that for mods that normally require you to restart the client to load them, you have to open the saves by doubleclicking them, else civ4 crashes during the restart (atleast for me)
version 2.1 removed after 57 downloads
version 2.2 removed after 422 downloads
v2.1: updated to work on earth1000AD saves.
v2.2: added ability to change victory conditions and dificulty levels.
v2.3: bugfix for issue where utility sometimes created corrupt saves.
The link does not work. The zip file that comes down is corrupt. Where can I get the real file?
Gyathaar Apr 13, 2006, 09:40 AM The link does not work. The zip file that comes down is corrupt. Where can I get the real file?
It works for me...
Sirian Apr 14, 2006, 09:49 PM It's corrupt for me as well. Which program did you use to create the zip file?
Dianthus Apr 15, 2006, 04:37 AM I can extract it using 7zip and winrar. Standard XP zip support and winzip don't work though.
Gyathaar Apr 15, 2006, 10:04 AM I made the zip file with winrar... I see now that it seems i accidently made it a rar archive with zip file ending.. will reupload as a proper zip file.
This program should not be nessesary for people running 1.61 patch thou.. since the game now has built in support for loading pbem/hotseat scenarios..
Sirian Apr 15, 2006, 06:37 PM You were right. v161 will handle everything needed: setting difficulty levels, even engaging Lock Modified Assets.
You have to produce the scenario as a single player game via the worldbuilder, save as a worldbuilder file to your PublicMaps folder, then launch the MP game as a New Scenario. Fairly simple, actually, if you know the steps.
Thanks for your contributions in this direction.
- Sirian
Gyathaar Apr 18, 2006, 01:21 AM Made a version that is compatible with 1.61.
Since I added other functionality, and the original functionality is obsolete with 1.61, I started a new thread:
http://forums.civfanatics.com/showthread.php?t=167669
akots Apr 21, 2006, 07:33 PM ... You have to produce the scenario as a single player game via the worldbuilder, save as a worldbuilder file to your PublicMaps folder, then launch the MP game as a New Scenario. Fairly simple, actually, if you know the steps. ...
Sorry to say that but it is substantially more complicated than that. One can find some detail at CDZ:
http://www.civ3duelzone.com/forum/topic.asp?TOPIC_ID=3517
Mohatma Jan 02, 2008, 04:15 PM Oh, I've posted in a wrong thread..
|
|