.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old February 23rd, 2009, 01:50 PM

VedalkenBear VedalkenBear is offline
Second Lieutenant
 
Join Date: May 2006
Posts: 465
Thanks: 10
Thanked 16 Times in 14 Posts
VedalkenBear is on a distinguished road
Default Re: Perking up the AI

Ich: The only reason I didn't suggest Java more strongly is because it is highly adapted to OOP, and VB (to my knowledge) is... not.

If someone could explain the underlying logic of SemiRandom, I could try programming it in Java.
Reply With Quote
  #2  
Old February 23rd, 2009, 03:20 PM
Ballbarian's Avatar

Ballbarian Ballbarian is offline
Colonel
 
Join Date: May 2005
Location: Kansas, USA
Posts: 1,538
Thanks: 289
Thanked 194 Times in 94 Posts
Ballbarian will become famous soon enough
Default Re: Perking up the AI

Quote:
Originally Posted by VedalkenBear View Post
If someone could explain the underlying logic of SemiRandom, I could try programming it in Java.
I would have great sympathy for anyone trying to follow SemiRandom's code. I am usually a very disciplined programmer and a stickler for meaningful variable names and verbose documentation, but when it came to this project I really just started typing until it worked. Then I added some more spaghetti on top of that lumpy mound. What a mess.

The RanDom front-end is not so bad on the code side, but I left out a ton of much needed error checking and the like. That is what happens when you don't know where you are going until you get there.
__________________
RanDom v2 - Map gen & Semirandomizer.
Province Editor - Custom province creation made easier.
God Editor - Custom pretender creation made easier.
Map Forge - Map editor
Reply With Quote
  #3  
Old February 23rd, 2009, 09:07 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Perking up the AI

Quote:
Originally Posted by VedalkenBear View Post
If someone could explain the underlying logic of SemiRandom, I could try programming it in Java.
Here is the original page from the old Dom2Minions site.
http://www.dom3minions.com/~minion/SemiRandom.shtml

The program is based on the fact that map commands allow much more management than most maps use. Some, such as Faerun, have programmed provinces with logical population choices, defenders, magic sites, name, etc. Those are great (and way too few) but the pro and con is that there is some loss to replayability. My totally chaoticized maps are called "interesting" but they can be irritating in the total lack of logic in what it throws into the map.

This projects concept is allowing all players to design a province. Such as: "The Shire" with a population of hoburgs, magic sites boosting supplies, and some interesting defenders. These are converted to Dom3 map commands and placed in a file where the name of the file includes codes to specify something such as "farmland" to control its placement.

So the SemiRandom program reads a map file and randomly places these planned provinces. You can tell it the percentage you want as designed vs being left to the games randomizer. As SemiRandom reads the map file, if it finds a farmland province then it chooses a farmland file and inserts it there. When it writes out the modified version of the .map file there will be special provinces included.

Thats the basic of it (pun intended). Of course Ballbarian has added wonderful extensions. The @ sign allowing for a small list so something like the guards equipment or name can be randomly selected from a short group of logical choices. And recognition of special provinces such as island, lake, peninsula, volcano, cave, etc. And lately the ability to add pre-designed logical gods/scales for AIs

The effectiveness of the program depends on having many pre-designed provinces and god files. Enough that we dont seem to keep running into the same things over and over. I think we are getting close to that but Id love to see more people turn in some so we can get more variety.

Gandalf Parker
--
The Socializing Soloist, the Mad Mapper and the Minimalist Modder, the Lord of Chaos, the Prophet for Random, Experimenter of Extremes, He Who Will Not Normalize Standardize Specialize (or Finalize), He Who Public Domains All.

Last edited by Gandalf Parker; February 23rd, 2009 at 09:17 PM..
Reply With Quote
The Following User Says Thank You to Gandalf Parker For This Useful Post:
  #4  
Old February 23rd, 2009, 11:13 PM
JimMorrison's Avatar

JimMorrison JimMorrison is offline
Lieutenant General
 
Join Date: May 2008
Location: Utopia, Oregon
Posts: 2,676
Thanks: 83
Thanked 143 Times in 108 Posts
JimMorrison is on a distinguished road
Default Re: Perking up the AI

I think what SemiRand really needs (borrowing from the rest of the winding journey of this thread), is a browser based designer. So for example, a page on the dom3minions server might have the same dialogues that are currently found in the downloadable exe, but the overt ease of creation and submission could likely spark a deluge of submissions - I am thinking that many people don't want to bother with it all for 1-2 provinces, but if all of those 1-2 province people were cajoled into submitting through the webservice, it would hugely magnify the number of available provinces.
Reply With Quote
  #5  
Old February 25th, 2009, 09:01 AM
Ballbarian's Avatar

Ballbarian Ballbarian is offline
Colonel
 
Join Date: May 2005
Location: Kansas, USA
Posts: 1,538
Thanks: 289
Thanked 194 Times in 94 Posts
Ballbarian will become famous soon enough
Default Re: Perking up the AI

Quote:
Originally Posted by JimMorrison View Post
I think what SemiRand really needs (borrowing from the rest of the winding journey of this thread), is a browser based designer. So for example, a page on the dom3minions server might have the same dialogues that are currently found in the downloadable exe, but the overt ease of creation and submission could likely spark a deluge of submissions - I am thinking that many people don't want to bother with it all for 1-2 provinces, but if all of those 1-2 province people were cajoled into submitting through the webservice, it would hugely magnify the number of available provinces.
Jack_Trowell was going to try his hand at adding support for semirand to his online tool a couple of years ago, but I haven't heard anymore about it. I think an online version of the Province & God Editors with a repository of the creations would be a great resource.
__________________
RanDom v2 - Map gen & Semirandomizer.
Province Editor - Custom province creation made easier.
God Editor - Custom pretender creation made easier.
Map Forge - Map editor
Reply With Quote
  #6  
Old June 3rd, 2009, 06:14 AM
Jack_Trowell's Avatar

Jack_Trowell Jack_Trowell is offline
Second Lieutenant
 
Join Date: Oct 2006
Location: Toulouse, FRANCE
Posts: 436
Thanks: 150
Thanked 21 Times in 13 Posts
Jack_Trowell is on a distinguished road
Default Re: Perking up the AI

Quote:
Originally Posted by Ballbarian View Post
Quote:
Originally Posted by JimMorrison View Post
I think what SemiRand really needs (borrowing from the rest of the winding journey of this thread), is a browser based designer. So for example, a page on the dom3minions server might have the same dialogues that are currently found in the downloadable exe, but the overt ease of creation and submission could likely spark a deluge of submissions - I am thinking that many people don't want to bother with it all for 1-2 provinces, but if all of those 1-2 province people were cajoled into submitting through the webservice, it would hugely magnify the number of available provinces.
Jack_Trowell was going to try his hand at adding support for semirand to his online tool a couple of years ago, but I haven't heard anymore about it. I think an online version of the Province & God Editors with a repository of the creations would be a great resource.
I have been away from DOM3 for a while, and my previous server had suffered a disk failure.

I have recently installed a new server and restored my backups.

There were some Perl modules not yet installed on the server, but it is done now, and my map randomizer is working again.

I suppose that adding suppord for semirand files (and a form to submit new provinces as was initially planned) should not be very hard, I will see what I can do.
__________________
Q: "How many Vorlons does it takes to change a lightbulb ?"
A: "Yes !" <stranges noises>
--
Dominions Map validator and randomizer : http://dominions.realites.org
Dominions Map editor v0.75b : http://dominions.realites.org/map_editor
Reply With Quote
  #7  
Old February 25th, 2009, 11:23 AM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Perking up the AI

Quote:
Originally Posted by JimMorrison View Post
I think what SemiRand really needs (borrowing from the rest of the winding journey of this thread), is a browser based designer. So for example, a page on the dom3minions server might have the same dialogues that are currently found in the downloadable exe, but the overt ease of creation and submission could likely spark a deluge of submissions - I am thinking that many people don't want to bother with it all for 1-2 provinces, but if all of those 1-2 province people were cajoled into submitting through the webservice, it would hugely magnify the number of available provinces.
I would be very interested in hosting this. Well actually in Ballbarians account on my server since all his projects are there already.

Anyone who knows any programming language might want to check and see if there are some available modules for accessing an Open Office spreadsheet. And code for tga2jpg or gif or png (I do have imagemagick on the server which can do that quite nicely). That way a web interface could be written to directly use Edi's database, the library of dom3 sprite images, and Ballbarians source files. Updating would be simple when those libraries are updated.

As a lazy alternative, there are a few people who have volunteered to convert loose ideas into turn-in code. If anyone has an idea for a province or god build (we seem to particularly need early and late era gods) then feel free to PM them to me. I might eventually get them done.
Reply With Quote
The Following User Says Thank You to Gandalf Parker For This Useful Post:
  #8  
Old June 3rd, 2009, 06:16 AM
Jack_Trowell's Avatar

Jack_Trowell Jack_Trowell is offline
Second Lieutenant
 
Join Date: Oct 2006
Location: Toulouse, FRANCE
Posts: 436
Thanks: 150
Thanked 21 Times in 13 Posts
Jack_Trowell is on a distinguished road
Default Re: Perking up the AI

Quote:
Originally Posted by Gandalf Parker View Post
Quote:
Originally Posted by JimMorrison View Post
I think what SemiRand really needs (borrowing from the rest of the winding journey of this thread), is a browser based designer. So for example, a page on the dom3minions server might have the same dialogues that are currently found in the downloadable exe, but the overt ease of creation and submission could likely spark a deluge of submissions - I am thinking that many people don't want to bother with it all for 1-2 provinces, but if all of those 1-2 province people were cajoled into submitting through the webservice, it would hugely magnify the number of available provinces.
I would be very interested in hosting this. Well actually in Ballbarians account on my server since all his projects are there already.

Anyone who knows any programming language might want to check and see if there are some available modules for accessing an Open Office spreadsheet. And code for tga2jpg or gif or png (I do have imagemagick on the server which can do that quite nicely). That way a web interface could be written to directly use Edi's database, the library of dom3 sprite images, and Ballbarians source files. Updating would be simple when those libraries are updated.

As a lazy alternative, there are a few people who have volunteered to convert loose ideas into turn-in code. If anyone has an idea for a province or god build (we seem to particularly need early and late era gods) then feel free to PM them to me. I might eventually get them done.

There are Perl modules for both OO parsing and image convertion.

I was planning to use them to expend my map editor by using Edi database, maybe I should start the project again.
__________________
Q: "How many Vorlons does it takes to change a lightbulb ?"
A: "Yes !" <stranges noises>
--
Dominions Map validator and randomizer : http://dominions.realites.org
Dominions Map editor v0.75b : http://dominions.realites.org/map_editor
Reply With Quote
  #9  
Old June 3rd, 2009, 10:05 AM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Perking up the AI

That would be great. Id love to see an interactive province builder. And Im still willing to host anything you want to at Dom3Minions.com
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:46 AM.


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