Hello, Can I ask for some advice ..

General Discussion
User avatar
Brennall
Lieutanant Commander
Lieutanant Commander
Posts: 70
Joined: Wed Aug 03, 2011 9:44 am
Location: London, UK

Re: Hello, Can I ask for some advice ..

Post by Brennall »

Ok all done ..

Code: Select all


http://vbam.spellbound.co.uk/captainsysgen.htm?seed=1314309978163&morale=5&trait=Dark Centre of the Universe&census=10&productivity=10

Link will generate this ...

Code: Select all

Trate (Major system)
Terrestial

RAW : 4
Capacity : 5
Census : 10
Morale : 5
Productivity : 10

Low value
Climate : 6 / 7 / 3
Std Climate Variance : 25%
Trait : Rich in Precious Minerals
Trait : Dark Centre of the Universe

One Moon
a: Accessible moon with resources

Unexplored Jump Lanes : 3
Standard Climate : 5 / 5 / 5
Please note this over rides all checking and can lead to "Broken" systems like the above, which has a Census value way above its capacity.

I hope you find your new toys useful :)

David

p.s. These new codes will NOT work on the Commodore level generator as it has multiple system objects and would require some form of 'choosing' an object to alter first. I have a system I am working on to do just this, but its not ready for release yet.
Last edited by Brennall on Thu Aug 25, 2011 10:14 pm, edited 1 time in total.
User avatar
virtutis.umbra
The Critic
The Critic
Posts: 207
Joined: Fri Jul 29, 2011 1:50 am
Contact:

Re: Hello, Can I ask for some advice ..

Post by virtutis.umbra »

Dude that is amazing! Thanks :)

EDIT: Actually the 'lack of safeguards' could be a pretty cool feature. Say I wanted to magick-up a situation where

1. a pre-INT NPE in this system's Capacity had just crashed due to, say ,some horrible nanoplague, and Census was suddenly overcrowded and desperately in need of outside help to relocate before they all starved to death...

Code: Select all

http://vbam.spellbound.co.uk/captainsysgen.htm?seed=1314309978163&morale=5&trait=Horrible%20Biosphere%20Catastrophe&census=9&cc=5&productivity=10&table=true

or

2. a Homeworld system had been subsequently razed of population, and its RAW and CC reduced by intensive orbital bombardment, leaving behind some minimal production infrastructure that survived the attack and a world that's somewhat less desirable than a Homeworld, but only incrementally so...

Code: Select all

http://vbam.spellbound.co.uk/captainsysgen.htm?seed=1314309978163&morale=0&trait=Sterilized%20Homeworld&census=0&raw=4&cc=8&productivity=2&table=true&homeworld=true

I'd love to be able to use your tool to help present that situation. I think I see how one could add that to the JS, but I don't want to fork your development work :)
Last edited by virtutis.umbra on Thu Aug 25, 2011 10:26 pm, edited 2 times in total.
-Patrick
crit·ic /ˈkritik : Someone who knows the way but can't drive the car. -- Kenneth Tynan
User avatar
Brennall
Lieutanant Commander
Lieutanant Commander
Posts: 70
Joined: Wed Aug 03, 2011 9:44 am
Location: London, UK

Re: Hello, Can I ask for some advice ..

Post by Brennall »

On a side note I have been also playing with the ability to store systems into the "Local Storage" object of modern browsers. This would enable you to bring up a list of "generated" systems and choose the one you want from a menu. If this works I could then create some form of "mapping" system to visually link all the systems together.

I should however point out the complexity may exceed my available time for "fun" programming projects.
User avatar
virtutis.umbra
The Critic
The Critic
Posts: 207
Joined: Fri Jul 29, 2011 1:50 am
Contact:

Re: Hello, Can I ask for some advice ..

Post by virtutis.umbra »

I wouldn't worry about local browser storage, I think there's lots that can be done just by making the state expressible in the URL. For instance, already it links in extremely well to my record-keeping spreadsheet for systems in my current game:

https://docs.google.com/spreadsheet/ccc ... n_US#gid=3

No local storage required :)
Last edited by virtutis.umbra on Thu Aug 25, 2011 10:37 pm, edited 2 times in total.
-Patrick
crit·ic /ˈkritik : Someone who knows the way but can't drive the car. -- Kenneth Tynan
User avatar
virtutis.umbra
The Critic
The Critic
Posts: 207
Joined: Fri Jul 29, 2011 1:50 am
Contact:

Re: Hello, Can I ask for some advice ..

Post by virtutis.umbra »

One small note, though: Income doesn't seem to change when I adjust the Census value of a homeworld (or Census + Production of any other system).

e.g.

Code: Select all

http://vbam.spellbound.co.uk/captainsysgen.htm?seed=1314311742332&census=2&production=4&table=true
-Patrick
crit·ic /ˈkritik : Someone who knows the way but can't drive the car. -- Kenneth Tynan
User avatar
Brennall
Lieutanant Commander
Lieutanant Commander
Posts: 70
Joined: Wed Aug 03, 2011 9:44 am
Location: London, UK

Re: Hello, Can I ask for some advice ..

Post by Brennall »

Told you it was brute force ;)

Gimme a few minutes.

I am pleased to see you using it with Google Spreadsheets ... it is EXACTLY why I made it that way.

I am currently also working on a google apps function script to create the url from a function and a few other tricks.
User avatar
virtutis.umbra
The Critic
The Critic
Posts: 207
Joined: Fri Jul 29, 2011 1:50 am
Contact:

Re: Hello, Can I ask for some advice ..

Post by virtutis.umbra »

You, sir, are a beast! And, furthermore, if you can make Income calculation use Utilized Productivity (i.e. Income = RAW * Min(Productivity, Census)) then you shall be the King of Beasts! ;)
-Patrick
crit·ic /ˈkritik : Someone who knows the way but can't drive the car. -- Kenneth Tynan
User avatar
virtutis.umbra
The Critic
The Critic
Posts: 207
Joined: Fri Jul 29, 2011 1:50 am
Contact:

Re: Hello, Can I ask for some advice ..

Post by virtutis.umbra »

Brennall wrote:I am pleased to see you using it with Google Spreadsheets ... it is EXACTLY why I made it that way.

I am currently also working on a google apps function script to create the url from a function and a few other tricks.
That would be magnificent to see. :D
-Patrick
crit·ic /ˈkritik : Someone who knows the way but can't drive the car. -- Kenneth Tynan
User avatar
Brennall
Lieutanant Commander
Lieutanant Commander
Posts: 70
Joined: Wed Aug 03, 2011 9:44 am
Location: London, UK

Re: Hello, Can I ask for some advice ..

Post by Brennall »

Ok I have some bad news ... you fed the wrong command line into it

Code: Select all

http://vbam.spellbound.co.uk/captainsysgen.htm?seed=1314311742332&census=2&production=4&table=true
should be

Code: Select all

http://vbam.spellbound.co.uk/captainsysgen.htm?seed=1314311742332&census=2&productivity=4&table=true
You used production instead of productivity
User avatar
Brennall
Lieutanant Commander
Lieutanant Commander
Posts: 70
Joined: Wed Aug 03, 2011 9:44 am
Location: London, UK

Re: Hello, Can I ask for some advice ..

Post by Brennall »

virtutis.umbra wrote:You, sir, are a beast! And, furthermore, if you can make Income calculation use Utilized Productivity (i.e. Income = RAW * Min(Productivity, Census)) then you shall be the King of Beasts! ;)
OK this is done now and uploaded.

<sigh> Now I have to work out a cleaner / better way of passing information back into the Commodore version ... I am currently doing this

Code: Select all

http://vbam.spellbound.co.uk/vbamsysgen.htm?seed=1312533878549&homeworld=true&stdclimate=4/8/6&table=true&PA=11316&PB=43639&PC=10112&PD=66669&PE=22326&PF=0020B&PG=00109&PH=11216&PI=00206&PJ=00305
Giving each object a "letter" and passing a compressed format back so ... PA=11316 is
Object 1
Census is 1
Morale is 1
RAW is 3
Productivity is 1
Capacity is 6

To handle higher numbers I am using Hexadecimal codes so Capacity 12 is "C" .. but its not "user" friendly.
that's why I am looking at using a function to MAKE the code to pass back.

I also have to look at a way to pass back Climate information which is percentage based and blows the whole hexadecimal solution away. Oh well .. its bed time ... so back to the drawing board tomorrow.

At some point when the 2e stuff is stable I want to get a generator going for that too ..
User avatar
virtutis.umbra
The Critic
The Critic
Posts: 207
Joined: Fri Jul 29, 2011 1:50 am
Contact:

Re: Hello, Can I ask for some advice ..

Post by virtutis.umbra »

Brennall wrote:Giving each object a "letter" and passing a compressed format back so ... PA=11316 is
Object 1
Census is 1
Morale is 1
RAW is 3
Productivity is 1
Capacity is 6

To handle higher numbers I am using Hexadecimal codes so Capacity 12 is "C" .. but its not "user" friendly.
You could comma-separate or decimal-separate the values:

Code: Select all

PA=1.1.3.1.6
that'd handle two-digit values pretty trivially:

Code: Select all

PA=1.12.3.1.12
-Patrick
crit·ic /ˈkritik : Someone who knows the way but can't drive the car. -- Kenneth Tynan
User avatar
Brennall
Lieutanant Commander
Lieutanant Commander
Posts: 70
Joined: Wed Aug 03, 2011 9:44 am
Location: London, UK

Re: Hello, Can I ask for some advice ..

Post by Brennall »

I am doing that with the stdclimate variable already ... I was just trying to compress the URL to some degree as it is getting bigger and bigger ... I have gone down that route already ... I wrote this

Space Marine Painter

Which uses the following command line to colour a Space Marine for Warhammer 40k

Code: Select all

http://www.bolterandchainsword.com/smp.php?bpe=E00000&bpj=FFFFFF&bp=FFFFFF&bpc=E00000&hdt=E00000&hdm=FFFFFF&hdl=FFFFFF&ey=FFFFFF&er=FFFFFF&pip=FFFFFF&nk=FFFFFF&ch=E00000&eg=FFFFFF&sk=FFFFFF&abs=FFFFFF&bt=E00000&cod=FFFFFF&ull=E00000&lk=FFFFFF&lll=E00000&lft=FFFFFF&url=E00000&rk=FFFFFF&lrl=E00000&rft=FFFFFF&slt=FFFFFF&sli=E00000&srt=FFFFFF&sri=E00000&ula=FFFFFF&lel=FFFFFF&lla=FFFFFF&lw=E00000&lh=E00000&ura=FFFFFF&rel=FFFFFF&rla=FFFFFF&rw=E00000&rh=E00000&gr=FFFFFF&rb=4A4A4A&nkl=FFFFFF&chestl=E00000&abdl=FFFFFF&hdtl=E00000&hdml=FFFFFF&hdll=FFFFFF&btl=E00000&codl=FFFFFF&erl=FFFFFF&bpl=FFFFFF&bpjl=FFFFFF&bpel=E00000&bpcl=E00000&abdc=4A4A4A&bg=FFFFFF&=&
This time round I am trying not to get as carried away :lol:
User avatar
Brennall
Lieutanant Commander
Lieutanant Commander
Posts: 70
Joined: Wed Aug 03, 2011 9:44 am
Location: London, UK

Re: Hello, Can I ask for some advice ..

Post by Brennall »

I had an idea about expanding the "random name generator" to give more themed names if desired.

It is important to note these are randomly generated words which usually mean nothing in the root language chosen BUT should feel similar to other words in the root language. Funnily enough the algorithm churns out real words very occasionally. Imagine the shock I had when I found the randomly generated name of the "Clit" system, I know for a FACT that system name is not one of the root words used in the algorithm. Anyway to cut a long story short, if it turns up a "real" word you don't like, just generate another system and move on :wink:

The language choices currently are ..

Code: Select all

Swahili : &language=swahili
German : &language=german
Japanese : &language=japanese
Chinese : &language=chinese
Viking : &language=viking
it takes me a couple of hours to generate another language set, I will get a few more done as time passes.

The nice thing is the random name generates AFTER the random system creation so if you want to have different names for a star system generated for different races you can. The system stats will remain constant and the name will change to the language chosen. So now your African orientated culture can have appropriate star names, which will be different from the Chinese culture's name for the same system.

Here are links to the same system with different root languages.

English : Nomord

German : Feit

Chinese : Zìyùn

Viking : Dord

Swahili : Akafu

Japanese : Hitanai

If there are any existing languages you might be interested in adding leave me a message.
User avatar
Brennall
Lieutanant Commander
Lieutanant Commander
Posts: 70
Joined: Wed Aug 03, 2011 9:44 am
Location: London, UK

Re: Hello, Can I ask for some advice ..

Post by Brennall »

Hopefully all variables on the url are now case insensitive, if I missed one please post here.
User avatar
virtutis.umbra
The Critic
The Critic
Posts: 207
Joined: Fri Jul 29, 2011 1:50 am
Contact:

Re: Hello, Can I ask for some advice ..

Post by virtutis.umbra »

Hey awesome! This tool has really come a long way. Sorry my suggestions made it harder for you to keep Captain in sync with Commodore :)
-Patrick
crit·ic /ˈkritik : Someone who knows the way but can't drive the car. -- Kenneth Tynan
Post Reply