Fate Roller

lemonjelly

Modding For Ethne
Joined
Jan 5, 2008
Messages
864
Location
UK
So, I've been working on a little program recently. Requires .NET 3.5
A massive thanks to anw for holding my hand as I ventured out into the scary world as C#.

Features:
  • Roll a leader and civilization.
  • Roll a religion.
  • Roll a mana type.
  • Roll an Alignment
  • Roll a Victory
  • Work from the root directory

Install:
  1. Drop this in the base RifE folder (same place as RifE Launcher)
  2. Extract
  3. Enjoy
Current Version:
Version 1.5​

Bugs And Problems:
  • Some leaders or civs (ones with more than one word) aren't properly capitalized.
  • Some leaders have odd names. (JO1, JO2, JO3) this is a RifE error, and not fixable on my end.

To-Do:
  • Make a better icon
  • Special conditions (All-magic, save/destroy world ect...)

Screenshots:
22215294363.jpg
22215303333.jpg


Use this program as you want, include it in your mods if you want to, PM me if you want the source code, all I ask for is a little credit, both to me and anw, without him, this little program wouldn't have been made.
 

Attachments

Not bad idea. I basically do this myself for games I'm not testing out new features in -- I use an RNG to pick my alignment and two victory conditions to enable, then choose random leader [alignment] and it's all set.

What does the mana mean -- is that meant to drive the player's choice of specialization in mana?
 
It means anything :p
Just use it when you want a random mana type, for what tech to research (Alteration, Divination, Elementalism, Necromancy), or to choose a promotion.
I may go and add in the respective gods and students a little later :)
 
Random alignment and victory options would be cool as well :)
 
I love it. When i play i don't really plan/know what civ to play as. This is exactly what i needed.

One suggestions would be to make it work from the root directory, to keep it simple for users.
 
I think that's easy, I was searching for a way to make it load more than one XML file, but that's impossible.

I'll put them on my list :)
 
Awesome idea, and sweet execution. One of the hardest things playing this game is deciding what to play as lol :D

I always like a little bit of direction or some idea of what I should play. It's also nice having a bit of variant rules on your play, like forcing yourself to never make melee units etc. Could be nice as another part of this program.

Like you have another tab there, with lots of options for what to exclude from the random variant rules roll. Then you roll and you get like 1-5 variant rules (number could also be an option). Now if those rules were then enforced in the game, or if you got penalty points by breaking them that be even cooler.

It would be better if it worked from the Mod\Rise from Erebus\
 
you know, jemon, you should put as author me, and name yourself only as modder of this code, because I wrote 90% of the code :D :D

and just by the way, i guess that the tabs are too much ... putting all of the textBoxs into one place and randomize all of them by one button would be simplier - it wouldn't require user to click on tab, press "Consult Gods", click on other tab, press "Consult Gods" again ...
but whatever :D

jemon said:
[..] I was searching for a way to make it load more than one XML file, but that's impossible. [..]
... i told you how to do that ... :D ... maybe if i'll be in the mood i could send you the code for it

greyfox said:
[..]Now if those rules were then enforced in the game, or if you got penalty points by breaking them that be even cooler.[..]
hmm, you could do that by simply saving result into file and then load it from python and apply restrictions / penalty ... but idk how large performance impact would this have ...
actually, that sounds quite challenging ... :D
 
Actually this would work very well as a mod or game option
- Game already has a random for civ and leader - check
- Do a screen at start up telling you what you rolled with additional stuff you can do from there, like roll a set of variant rules which, since its a mod, could be enforced or through a point system scored.
 
Interesting, will add it to the download thread.

One thing: Risen Emperor came up as Risen_emperor. :p
Thanks :D
Yeah, I know :p
There's no inbuilt function for Proper Case, so anw wrote me a workaround that takes the first letter and capitalizes it.

I always like a little bit of direction or some idea of what I should play. It's also nice having a bit of variant rules on your play, like forcing yourself to never make melee units etc. Could be nice as another part of this program.
Yeah, its on my list :D
Just give me some suggestions :D

Like you have another tab there, with lots of options for what to exclude from the random variant rules roll. Then you roll and you get like 1-5 variant rules (number could also be an option). Now if those rules were then enforced in the game, or if you got penalty points by breaking them that be even cooler.
Being enforced ingame is too complicated :p
I think I can do the number thing, If I do options, that'll be a lot harder, because people will want them for everything, and the Leader/Civ thing is almost impossible to do, unless I call from the Leaderhead file as well.

It would be better if it worked from the Mod\Rise from Erebus\
Its on my list :p

you know, jemon, you should put as author me, and name yourself only as modder of this code, because I wrote 90% of the code :D :D
Yeah, that's true :p
I got religions working by myself :lol:

and just by the way, i guess that the tabs are too much ... putting all of the textBoxs into one place and randomize all of them by one button would be simplier - it wouldn't require user to click on tab, press "Consult Gods", click on other tab, press "Consult Gods" again ...
but whatever :D
I like the separate tabs, I don't want to reroll everything to get a different leader :p

... i told you how to do that ... :D ... maybe if i'll be in the mood i could send you the code for it
Thanks :D
I may be able to figure it out, Google is my friend :lol:

hmm, you could do that by simply saving result into file and then load it from python and apply restrictions / penalty ... but idk how large performance impact would this have ...
actually, that sounds quite challenging ... :D
And then remember who's program this is, if you can't do it, no way I can :p
 
there's the code

http://pastebin.com/zpRdHzxT

edit:
- these comments ""// NOTE: don't forget to create new struct and list for unit combats "" are for you, jemon
- replace "" filesList.AddRange(new DirectoryInfo(appPath+XXX)); "" lines with this: "" filesList.AddRange(new DirectoryInfo(appPath+XXX).GetFiles()); ""
 
This might make a sweet addition to the RifE launcher, especially if you can then launch staright into a game using the Fate Roller.
 
This might make a sweet addition to the RifE launcher, especially if you can then launch staright into a game using the Fate Roller.

errr ... i think that this isn't possible without knowleadge of source code of Civ4BeyondSword.exe file - which we, sadly, don't have
 
UPLOADED VERSION 1.5!

FEATURES:
  • Slightly better interface.
  • Alignment and Victory rollers.
  • Works from root directory.
  • Scans modules.

Screenshots in the first post.
 
Back
Top Bottom