.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Utility: RanDom v2.03 - Map gen & Semirandomizer... Updated (http://forum.shrapnelgames.com/showthread.php?t=34826)

Ballbarian October 8th, 2008 09:57 PM

Re: RanDom v2.03 - Map gen & Semirandomizer... Updated
 
Just some touch up to the main post. Added links to help those who run into the missing ocx error and some sample map images pulled in from some of the older posts.

(Pardon my mess. :) )

MaxWilson December 7th, 2008 01:53 AM

Re: RanDom v2 - Map gen & Semirandomizer... the se
 
Quote:

Originally Posted by Ballbarian (Post 528367)
Has anyone had any problems running this in Vista? Judging by the little I have read online, it appears that it should run fine.

What exactly happened Valandil? What error message did you receive and at what point in the process?

I am having problems with Vista. Currently getting an error:

Code:

                          Lost in time...
Could not open 'C:\usr\dominions3\SemiRandom\GANPLAINS'
Try again? (y or n): y
Enter name of .map file to modify (leave off extension please!): scenario

          Adding stuff... |
---Error in main, line 1692: index 1 (=-2) out of range
---Error: Program stopped due to an error

I'm trying to track it down now.

Edit: Okay, I've read some earlier posts in this thread about this problem, and Ballbarian recommends going to the AI tab and making sure you've got EA w/ Tir Na N'og turned off. I've been running Semirandom straight from the command line, but just in case I tried going to RanDom and doing this... no luck. But at least I'm pretty sure it's a problem with the allowed provinces. More when I find the problem.

-Max

MaxWilson December 7th, 2008 02:27 AM

Re: RanDom v2.03 - Map gen & Semirandomizer... Updated
 
Okay, I'm not sure exactly what was causing the problem (i.e. why the array indexing wasn't right) but I finally decided that the PRINT was simply a logging statement, so I REM'ed it out... and it seems to work. Now to experiment with the God editor and some scenarios. I'm glad that I'm finally getting around to this, I've been meaning to play with SemiRandom for ages.

Edit: nope, I guess I was just lucky. It didn't really work because semirandom.yab is the *source code* for the .exe, not something which is actively being used by the .exe. It turns out I just got lucky that time (I guess it happened to pick all valid nations that time I tried it). Back to work for me, trying to isolate the problem.

MaxWilson December 7th, 2008 03:07 AM

Re: RanDom v2.03 - Map gen & Semirandomizer... Updated
 
Okay, I *think* the problem is that nation.cfg should have a "-" instead of "!" in front of Tir Na N'Og to mark it as off-limits. After making this change, SemiRandom appears to be working reliably, although I'm puzzled why it assigns several versions of the same God to a given nation (EA Arc) with different lands. However, that's probably valid and I just don't understand map files well enough to know that.

-Max

MaxWilson December 7th, 2008 05:43 AM

Re: RanDom v2.03 - Map gen & Semirandomizer... Updated
 
1 Attachment(s)
Okay, here's a version that should "just work" for anyone doing SingleAge games. It has a bunch of stuff from Ballbarian's first post all rolled into one (e.g. all of Foodstamp's GANs, Ballbarian's extra Gods) and the nation config file set for all nations in EA/MA. (LA is omitted because it has no God files yet.) Actually, let me rephrase that: pick your nation by editing nation.config to move the hyphen "-" onto your nation. Other than that it should just work.

-Max

Ballbarian December 8th, 2008 03:27 AM

Re: RanDom v2.03 - Map gen & Semirandomizer... Updated
 
Sorry that I missed your posts this afternoon MaxWilson. I will review your problems tomorrow night. I am already running about 4 hours behind on sleep and I expect work to be rough in the morning.

Coldshard December 9th, 2008 03:59 PM

Re: RanDom v2.03 - Map gen & Semirandomizer... Updated
 
Sorry if this was answered somewhere in the thread and I missed it.. but I'm having the, 'component TABCTL32.OCX or one of its dependencies not correctly registered' error. I found the file in this thread but putting a copy in the dominions folder doesnt help nor does putting it in the system32 folder.

Where should I put this file to make it work? Or do I need to change some other setting somewhere?

Ballbarian December 9th, 2008 09:31 PM

Re: RanDom v2.03 - Map gen & Semirandomizer... Updated
 
Coldshard,
See this post:
http://forum.shrapnelgames.com/showp...&postcount=117

Just replace references to comdlg32.ocx with tabctl32.ocx.

Ballbarian December 9th, 2008 09:48 PM

Re: RanDom v2.03 - Map gen & Semirandomizer... Updated
 
Quote:

Originally Posted by MaxWilson (Post 657913)
Okay, I *think* the problem is that nation.cfg should have a "-" instead of "!" in front of Tir Na N'Og to mark it as off-limits. After making this change, SemiRandom appears to be working reliably, although I'm puzzled why it assigns several versions of the same God to a given nation (EA Arc) with different lands. However, that's probably valid and I just don't understand map files well enough to know that.

-Max

The RanDom program (for Win users) takes care of the nation configuration and other options, because (as you have discovered :) ) it can be a daunting task to set all of these options manually and get everything working as you would like. Even with using the gui it can be a challenge.

- reserve for human
! disable this nation
<null> enabled for AI

The multiple placements of EA Arc is because that nation number is 0 and it is the first nation in the nation cfg list. Sounds like some of your settings might be off a tad.

Ballbarian December 9th, 2008 10:01 PM

Re: RanDom v2.03 - Map gen & Semirandomizer... Updated
 
For some examples that might help clarify some things, I will post some of my own current settings.

Nation Configuration screen from within RanDom
(So you can see graphically how SemiRandom sees the settings in the Nations.cfg file posted below.)
http://forum.shrapnelgames.com/pictu...&pictureid=111


Nations.cfg (EA section only)
Code:

===EARLY ERA===
!0 Arcoscephale
1 Ermor
2 Ulm
!3 Marverni
!4 Sauromatia
!5 T'ien Ch'i
!7 Mictlan
!8 Abysia
!9 Caelum
10 C'tis
11 Pangaea
!12 Agartha
13 Tir na n'Og
14 Fomoria
!15 Vanheim
!16 Helheim
!17 Niefelheim
!18 Kailasa
!19 Yomi
-20 Hinnom
!*21 Atlantis
!*22 R'lyeh
!*26 Oceania
68 Lanka

SemiRandom.cfg
Code:

C:\Games\dominions3\SemiRandom
 0
 100
 1
 0
 25
 25
-1
-1
-1
-1
-1
 0
 7
 0
 2
EA
 20
 4
 0
-1
255 000 000 255
Faerunmod_SR

Hope that helps.


All times are GMT -4. The time now is 12:14 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.