Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: A RTD mass generator! We now have a beta!  (Read 8881 times)

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
A RTD mass generator! We now have a beta!
« on: September 02, 2008, 05:14:35 pm »

I have an idea for an RTD generator that takes(from a text file) a list or creatures then rolls for them and puts it in a text file so it woud be:
23 goblin A
1 random_person A
1 other_random_person O
becomes
goblin1:2
goblin2:5,2
goblin3:1
goblin4:4,5,1

and so on.
the idea would be to allow people to make large rushes of people a tiny bit easier. Of course it would need a way of representing what type of actiion(I used A as an attack) and maye a definition of what results trigger an additional roll.
maybe
[A:ATTACK]
[3:DODGE:-1]
[4:DODGE]
[5:DODGE:1]
[6:RUBBLECHECK]
[:DODGE]
[1:DAMAGE:2]
[2:DAMAGE:1]
[3:DAMAGE]
[4:DAMAGE]
[5:DAMAGE:1]
[6:RUBBLECHECK:-2]
[:RUBBLECHECK]
[3:SMALLRUBBLE]
[4:RUBBLE:-1]
[5:RUBBLE]
[6:HUGERUBBLE]


and so on....

The idea would be to make a flexible RTD mass-rolling engine for games like the mad wizard arena that would give the data in forum format without the description.
I will probably start working on one sometime but the idea here is to comment and make suggestions and possible end up with the actual program.
« Last Edit: September 04, 2008, 06:06:22 pm by qwertyuiopas »
Logged
Eh?
Eh!

a1s

  • Bay Watcher
  • Torchlight Venturer
    • View Profile
Re: A RTD mass generator?
« Reply #1 on: September 02, 2008, 05:42:27 pm »

wait. so you want to make a program that will roll x-sided dice for a bunch of entries in a text file? That is easy as pie.
the hard part about the Roll games is to come up with funny results and that is hardly automatable.
Logged
I tried to play chess but two of my opponents were playing competitive checkers as a third person walked in with Game of Thrones in hand confused cause they thought this was the book club.

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: A RTD mass generator?
« Reply #2 on: September 02, 2008, 06:06:29 pm »

I would like to make more of a raws style system for automated attack-dodge-damage rolls for things like the 60 goblin assault seen in the mad wizard arena RTD.
I realized if the types of rolls were defined in a file, and possible actions were associated with a unique character, it would be much easier to make sure that you roll for EVERY person and NPC as well as writing a bit of the post.

Edit: I have one started. all it does so far is open the files, but it's a start, right?
« Last Edit: September 02, 2008, 07:42:35 pm by qwertyuiopas »
Logged
Eh?
Eh!

chaoticag

  • Bay Watcher
  • All Natural Pengbean
    • View Profile
Re: A RTD mass generator?
« Reply #3 on: September 03, 2008, 06:31:33 am »

This fad really has grown to a large enough size here. Especially now that mass rolls are being programed.

I doubt this game would do so well without the newfound creativity of df players.
Logged

Sean Mirrsen

  • Bay Watcher
  • Bearer of the Psionic Flame
    • View Profile
Re: A RTD mass generator?
« Reply #4 on: September 03, 2008, 07:35:03 am »

Not to mention one game already runs in a DF universe...

Yeah, the game pretty much withered away everywhere else. I saw quite a few started up on different forums, but most failed due to sudden "total interest failure".
Logged
Multiworld Madness Archive:
Game One, Discontinued at World 3.
Game Two, Discontinued at World 1.

"Europe has to grow out of the mindset that Europe's problems are the world's problems, but the world's problems are not Europe's problems."
- Subrahmanyam Jaishankar, Minister of External Affairs, India

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: A RTD mass generator?
« Reply #5 on: September 03, 2008, 05:59:51 pm »

Well, I have it checking and opening the files then trying to load the data, although all it can do is recognise the states and load them into a linked list while having exactly 0 code for the rolls...
If anyone wants what I currently have, it is here.

If ANYONE has ANY suggestions of how to do it better/easier/faster, I would be quite happy.
Logged
Eh?
Eh!

penguinofhonor

  • Bay Watcher
  • Minister of Love
    • View Profile
Re: A RTD mass generator?
« Reply #6 on: September 03, 2008, 07:01:32 pm »

I doubt this game would do so well without the newfound creativity of df players.

Underwear golem!
Logged

chaoticag

  • Bay Watcher
  • All Natural Pengbean
    • View Profile
Re: A RTD mass generator?
« Reply #7 on: September 04, 2008, 10:24:47 am »

This should come with at least an in text file, an out text file, and a data file.

Step by step instructions would be apreciated
Logged

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: A RTD mass generator?
« Reply #8 on: September 04, 2008, 03:29:08 pm »

It currently only opens the in and out files and crudely starts to read the data but never gets far with it.


Edit: I have started on a much simpler but underpowered version where the format is

(7 chars)(description of up to 120 chars)
the 7 chars are the current index then the indexes for each roll.
%This system is simple to implement and could be created by an external program, but it will be a placeholder, so it doesn't matter.

Not quite done yet with the rolling...
« Last Edit: September 04, 2008, 05:28:06 pm by qwertyuiopas »
Logged
Eh?
Eh!

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: A RTD mass generator?
« Reply #9 on: September 04, 2008, 05:59:31 pm »

Okay, this actually deserves a new post(since I don't think edits move the topic)
Well I reduced it to single-line definitions and it actually works quite well for what it does.

download link

Input format:
(action character)(Name)

Data format:
(7 chars of ID, next ID if number = this)(short description of up to 248 chars)



My example is not fery good, it needs better data options ;)
But it shows what can be done and how to do it.
- is used as none for both filenames and data ids.


Edit: extended data sample showing the use of useless rolls as descriptors

ab-----Tries to do nothing!
bccddeeBut somehow fails at that! Massive damage evasion roll!
c------It took MASSIVE DAMAGE to the point of death!
d------It barely avoided death.
e------It dodged he damage perfectly!


Edit again: sample output

Goblin 1:
1:Tries to do nothing!
4:But somehow fails at that! Massive damage evasion roll!
4:It barely avoided death.

Goblin 2:
6:Tries to do nothing!

Goblin 3:
3:Tries to do nothing!

...

Goblin 5:
1:Tries to do nothing!
4:But somehow fails at that! Massive damage evasion roll!
6:It barely avoided death.

...
« Last Edit: September 04, 2008, 06:03:37 pm by qwertyuiopas »
Logged
Eh?
Eh!

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: A RTD mass generator! We now have a beta!
« Reply #10 on: September 05, 2008, 05:41:55 pm »

Help?
I am having a pronlem where


    char datadata[256*256][256];

causes the program to crash instantly when run but

    char datadata[256][256];

doesn't.

Any help would be GREATLY appreciated.
Logged
Eh?
Eh!

Fualkner

  • Bay Watcher
  • My glasses split light.
    • View Profile
Re: A RTD mass generator! We now have a beta!
« Reply #11 on: September 05, 2008, 07:03:46 pm »

Run the program with a batch file, as so:

[FILENAME].exe (or whatever the extension is)
PAUSE

You should see an error, assuming it's console-based. Best of luck.

Perhaps that's just invalid syntax?
Logged

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: A RTD mass generator! We now have a beta!
« Reply #12 on: September 05, 2008, 08:44:03 pm »

The problem is that it gives me the standard windows annoying useless error report, so running it from the console doesn't help.
Logged
Eh?
Eh!