RPG Forums

Go Back   RPG Forums > Role Playing Game Section > Twilight 2000 Forum

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-16-2018, 12:02 AM
Lurken's Avatar
Lurken Lurken is offline
A bad tomato
 
Join Date: Aug 2018
Posts: 108
Default Encounter Generator

Hello all!


I am reasonably done with a hobby project of mine. I have coded together a script that will take the inputs of what terrain the characters are in, and what stability it is (as defined in the core rulebooks of T2K), with the options of hard selecting Group/Item/Animal and even what specific Group/Item/Animal.

Unpack this file anywhere, and run the Random Encounter Script.bat (feel free to double check it by editing it in Notepad if you are feeling hesitant). This file will then execute the Project Encounter powershell file, which is where you give the input data. The script will then feed back the output data of the random encounter.

The water encounters are not yet implemented.

The resources is all in the textfiles, which is read and processed by the script. If you are daring you can edit them and the sourcecode.

Also, there is a bonus script, with another executable .bat-file, which generates the motivations of a NPC.

Please let me know of what you think of it and possible improvements.

I included in the help file some definitions on what exactly you can type in on what prompt to make life a bit easier for those who havn't trawled through the source code like I have (so many lines).

Known TODOs:
Implement water encounters
Add Encounter Range to Item-spawned Groups

NOT EVEN CLOSE TO DONE
Character Generator
Combat Resolver (because I am lazy and combat in T2k can be a massive slog with modifiers this and modifiers that)
Attached Files
File Type: rar Project Encounter_200131_Release.rar (82.9 KB, 53 views)

Last edited by Lurken; 02-03-2020 at 08:31 AM.
Reply With Quote
  #2  
Old 08-16-2018, 04:58 AM
StainlessSteelCynic's Avatar
StainlessSteelCynic StainlessSteelCynic is offline
Registered Registrant
 
Join Date: Feb 2009
Location: Western Australia
Posts: 2,375
Default

Haven't had a chance to look at it yet but I would have loved something like this years ago!
But I don't know one end of a script from the other so I have to wait for some nice scripter to do this
Reply With Quote
  #3  
Old 08-16-2018, 05:01 AM
Lurken's Avatar
Lurken Lurken is offline
A bad tomato
 
Join Date: Aug 2018
Posts: 108
Default

Quote:
Originally Posted by StainlessSteelCynic View Post
Haven't had a chance to look at it yet but I would have loved something like this years ago!
But I don't know one end of a script from the other so I have to wait for some nice scripter to do this
You don't need to do anything. It is ready made and ready to use. Just click on the .bat file and it will do everything for you. (Other than giving it the input it asks for)
Reply With Quote
  #4  
Old 08-16-2018, 05:10 AM
StainlessSteelCynic's Avatar
StainlessSteelCynic StainlessSteelCynic is offline
Registered Registrant
 
Join Date: Feb 2009
Location: Western Australia
Posts: 2,375
Default

I should explain myself better.
What I meant is that I don't know how to write such a program so I basically wait until someone who does know how to do it, creates it.
Reply With Quote
  #5  
Old 08-16-2018, 08:25 AM
pmulcahy11b's Avatar
pmulcahy11b pmulcahy11b is offline
The Stat Guy
 
Join Date: Sep 2008
Location: San Antonio, TX
Posts: 4,345
Default

Quote:
Originally Posted by StainlessSteelCynic View Post
I should explain myself better.
What I meant is that I don't know how to write such a program so I basically wait until someone who does know how to do it, creates it.
That's the stage I'm in with my vehicle and small arms spreadsheets. I don't know how to correct them, or make new ones (I don't have enough Excel-fu), and I am eternally grateful to Antenna for sharing those with me.
__________________
War is the absence of reason. But then, life often demands unreasonable responses. - Lucian Soulban, Warhammer 40000 series, Necromunda Book 6, Fleshworks

Entirely too much T2K stuff here: www.pmulcahy.com
Reply With Quote
  #6  
Old 08-16-2018, 08:58 AM
Lurken's Avatar
Lurken Lurken is offline
A bad tomato
 
Join Date: Aug 2018
Posts: 108
Default

Quote:
Originally Posted by pmulcahy11b View Post
That's the stage I'm in with my vehicle and small arms spreadsheets. I don't know how to correct them, or make new ones (I don't have enough Excel-fu), and I am eternally grateful to Antenna for sharing those with me.
Like what would you need help with? Like entering large amount of raw data into spreadsheets or make the data dance at your fingertip and spit out nice output?
Reply With Quote
  #7  
Old 08-17-2018, 05:28 AM
Lurken's Avatar
Lurken Lurken is offline
A bad tomato
 
Join Date: Aug 2018
Posts: 108
Default

Posted a new version of the package.

This has been updated to have resolver for what group spots what group at what range. Added prompts to ask for size of player group, player vehicles and best observation to allow the script to find out with which group gets the drop, if any or both and at what range, or after how many rounds one group to spot or stumble across the other.
Reply With Quote
  #8  
Old 09-04-2018, 08:39 AM
Lurken's Avatar
Lurken Lurken is offline
A bad tomato
 
Join Date: Aug 2018
Posts: 108
Default

Updated with a new version that contains much more information and stuff. Much of the new information is thanks to a Tim Drost, whos tables I have put to good use.

Originalpost:
I have done more work on my Encounter Generator. I have added more info and stuff, much thanks to Tim Drost and his tables. Now the encounters will generate a log file that will generate individual information about each and every person in the encounter group. This is so far only implemented for the Group Branch. I have not yet implemented it for the Item Branch.

Unpack this file anywhere, and run the Random Encounter Script.bat (feel free to double check it by editing it in Notepad if you are feeling hesitant). This file will then execute the Project Encounter powershell file, which is where you give the input data. The script will then feed back the output data of the random encounter.

BUG INFORMATION: I discovered that if the package is unpacked where the directory contain somewhere a space, the code will glitch out badly. This is due to a choice of solution I have with dividing up the info-files. I will be looking into a solution of that.

The water encounters are not yet implemented.

The resources is all in the textfiles, which is read and processed by the script. If you are daring you can edit them and the sourcecode.

Also, there is a bonus script, with a different executable .bat-file, which generates the motivations of a NPC.

As always, please let me know of what you think of it and possible improvements.

https://www.dropbox.com/s/bzw2jgzz69...80904.rar?dl=0

Known TODOs:
Implement water encounters
Fix directory bug
Add Vehicle specification for all encounters with vehicles.

NOT EVEN CLOSE TO DONE
Character Generator
Combat Resolver (because I am lazy and combat in T2k can be a massive slog with modifiers this and modifiers that)

Last edited by Lurken; 09-05-2018 at 12:04 AM.
Reply With Quote
  #9  
Old 09-04-2018, 10:19 PM
pmulcahy11b's Avatar
pmulcahy11b pmulcahy11b is offline
The Stat Guy
 
Join Date: Sep 2008
Location: San Antonio, TX
Posts: 4,345
Default

I got a 404 error when I tried to download it.
__________________
War is the absence of reason. But then, life often demands unreasonable responses. - Lucian Soulban, Warhammer 40000 series, Necromunda Book 6, Fleshworks

Entirely too much T2K stuff here: www.pmulcahy.com
Reply With Quote
  #10  
Old 09-04-2018, 10:22 PM
pmulcahy11b's Avatar
pmulcahy11b pmulcahy11b is offline
The Stat Guy
 
Join Date: Sep 2008
Location: San Antonio, TX
Posts: 4,345
Default

Quote:
Originally Posted by Lurken View Post
Like what would you need help with? Like entering large amount of raw data into spreadsheets or make the data dance at your fingertip and spit out nice output?
Quite frankly, Antenna's vehicle worksheet needs a lot of work to include new data and make so much tweaking unnecessary. I'd also like to add some new weapon design elements to that worksheet. And I'd like to work up one for knives and scopes. And I'd like them to be updatable. Etc, etc, etc...
__________________
War is the absence of reason. But then, life often demands unreasonable responses. - Lucian Soulban, Warhammer 40000 series, Necromunda Book 6, Fleshworks

Entirely too much T2K stuff here: www.pmulcahy.com

Last edited by pmulcahy11b; 09-04-2018 at 10:24 PM. Reason: Misspelling
Reply With Quote
  #11  
Old 09-05-2018, 12:03 AM
Lurken's Avatar
Lurken Lurken is offline
A bad tomato
 
Join Date: Aug 2018
Posts: 108
Default

Quote:
Originally Posted by pmulcahy11b View Post
I got a 404 error when I tried to download it.
Hot damn! Good for letting me know.

I'll be updating my main post, try this in the mean time:
https://www.dropbox.com/s/bzw2jgzz69...80904.rar?dl=0

Quote:
Originally Posted by pmulcahy11b View Post
Quite frankly, Antenna's vehicle worksheet needs a lot of work to include new data and make so much tweaking unnecessary. I'd also like to add some new weapon design elements to that worksheet. And I'd like to work up one for knives and scopes. And I'd like them to be updatable. Etc, etc, etc...
Well... I'll take a gander and see what I can do to make it happen.
Reply With Quote
  #12  
Old 09-05-2018, 07:18 AM
recon35 recon35 is offline
Registered User
 
Join Date: May 2017
Posts: 32
Default

That would be awesome. I would love the ability to generate spreadsheets for this, or better, character generation, but I'm doing good just to use existing ones.
Reply With Quote
  #13  
Old 09-05-2018, 09:43 AM
Lurken's Avatar
Lurken Lurken is offline
A bad tomato
 
Join Date: Aug 2018
Posts: 108
Default

Quote:
Originally Posted by recon35 View Post
That would be awesome. I would love the ability to generate spreadsheets for this, or better, character generation, but I'm doing good just to use existing ones.
Pumping out to a spreadsheet is a bit more tricky. Can be done, but the amount of complexity to the code makes it very low on priorities. For now, pumiping out to a Log.txt is good enough.

You tried my latest version?
Reply With Quote
  #14  
Old 04-12-2019, 03:36 AM
Lurken's Avatar
Lurken Lurken is offline
A bad tomato
 
Join Date: Aug 2018
Posts: 108
Default

Hi all

After a long hiatus I found time to tune and develop my script.

It should sort the generated NPC more efficiently and correctly than before.

More intuitive input system to make it easier to ask the script what will happen.

Tweaked the script so that cargo vehicles and trailers with liquid tanks will get liquid goods in them and vice versa that they will not get "solid" goods on them. However non-tank cargo and trailers will still have a chance of getting liquid goods. (lots and lots of jerrycans and drums)

If a cart or trailer becomes chosen, the script will also add animals to draw the cart/trailer. If it is a 1-ton trailer, just mentally image that there are more horses pulling.

And some more stuff I can't remember.

But please try it out and let me know what you think or if it is to any use.

After downloading the package, unpack it somewhere to a folder/path that don't have any blank spaces in it. Not doing so may cause the script to crash. It is on my todo list to change those lines that that issue to another solution. After doing so, run the "Random Encounters Script.bat", and you should be getting a commandprompt-window that will run the script.

Edit add: The log file is created in log folder under the Encounter Generator mapp, which also contains the .bat.

Edit add number 2:
Big thing. I notice I had focused a lot on the Group branch of the script so right now it seems that the script won't save anything from the Item branch or Animal branch to the log-file, but it will display that information in the command prompt window. Fixing this will my next big thing to rework.


https://www.dropbox.com/s/pf5qh8eoj1...lease.rar?dl=0

Last edited by Lurken; 04-12-2019 at 05:31 AM.
Reply With Quote
  #15  
Old 01-30-2020, 05:30 AM
Lurken's Avatar
Lurken Lurken is offline
A bad tomato
 
Join Date: Aug 2018
Posts: 108
Default

Hi!

I have done some work on my Encounter generator script, done in Powershell. I have revamped the group generation, and added a new terrain Urban. This to better capture the possible encounters in cities, deserted, blown up, or inhabited.

The user interface should be friendlier with added options to just type the number of the option you wish to pick.

Fixed a lingering bug that caused crashes when running it in a folder-path that had white-spaces.

You need to run the Random Encounters Script which is in the Encounter_Generator-folder, which is a .bat-file that triggers the powershell-script.

If there are any feedback, in any form. Please let me know. I do this because I know from experience that checking for a possible encounter and then rolling it up is a massive slog, and I want to make GMing of T2k easier.


UPDATE:
UPDATE:
Even if I had done some checking, some unintended bugs came from my white-space bug fixing. Tracking down all instances where I have been lazy was trickier than expected. Please find the newest and more functioning version down below.

Unpacked latest version:
https://www.dropbox.com/sh/kny9shz7p...bdvlyUAca?dl=0
Attached Files
File Type: rar Project Encounter_200131_Release.rar (82.9 KB, 32 views)

Last edited by Lurken; 02-03-2020 at 12:19 AM.
Reply With Quote
  #16  
Old 01-31-2020, 07:04 AM
Gunner Gunner is offline
Registered User
 
Join Date: Sep 2008
Posts: 55
Default

Very cool. Can't wait to try it.
Reply With Quote
  #17  
Old 02-02-2020, 07:06 AM
Gunner Gunner is offline
Registered User
 
Join Date: Sep 2008
Posts: 55
Default

I get an error opening the RAR file. "Error opening the archive (check available disk space, that you have a valid password, or that the archive is not damaged or partial)

Using RAR Opening on a new Windows 10 machine, so I know disk space isn't the issue, at least...
Reply With Quote
  #18  
Old 02-03-2020, 12:19 AM
Lurken's Avatar
Lurken Lurken is offline
A bad tomato
 
Join Date: Aug 2018
Posts: 108
Default

Quote:
Originally Posted by Gunner View Post
I get an error opening the RAR file. "Error opening the archive (check available disk space, that you have a valid password, or that the archive is not damaged or partial)

Using RAR Opening on a new Windows 10 machine, so I know disk space isn't the issue, at least...
Hmm...

Interesting. I had a similar report on one of the facebook posts. In the mean time, try the unpacked version.

https://www.dropbox.com/sh/kny9shz7p...9YHpbbdvlyUAca
Reply With Quote
  #19  
Old 02-24-2021, 02:16 AM
Lurken's Avatar
Lurken Lurken is offline
A bad tomato
 
Join Date: Aug 2018
Posts: 108
Default

Hi all

I have completed the project, I think. Restarted the work on the script and I can't provoke more errors in it that I can recreate.

Here is the Dropbox link: https://www.dropbox.com/s/qtj14tj7yj...10224.rar?dl=0

Just unpack the file and run it. It should be able to run from any destination on your computer. If you have a MAC, you need to install a powershell client for it to be able to run.

If you get any and all errors, please copy the error so I can hunt down the bugs.

I may release a new version soon again though. Going to add Primitive and Improvised weapons to the machinery, so that low end groups may have various bows and improvised weaponry.
Attached Files
File Type: rar Project Encounter_210224.rar (101.0 KB, 23 views)
__________________
Running a T2k game on Discord. Want to join us? PM me.

I am a tomato, to some.
Reply With Quote
  #20  
Old 02-24-2021, 11:54 AM
wolffhound79 wolffhound79 is offline
Registered User
 
Join Date: Feb 2020
Posts: 80
Default

I have windows 7 still. I tried to open it but doesnt seem to work for me. Is there something I need to be able to run it?
Reply With Quote
  #21  
Old 02-24-2021, 12:19 PM
Lurken's Avatar
Lurken Lurken is offline
A bad tomato
 
Join Date: Aug 2018
Posts: 108
Default

Quote:
Originally Posted by wolffhound79 View Post
I have windows 7 still. I tried to open it but doesnt seem to work for me. Is there something I need to be able to run it?
That is a bit old. I'll take a trip to google and see what I can find.
__________________
Running a T2k game on Discord. Want to join us? PM me.

I am a tomato, to some.
Reply With Quote
  #22  
Old 02-24-2021, 01:11 PM
Gunner Gunner is offline
Registered User
 
Join Date: Sep 2008
Posts: 55
Default

Thanks for your work on this. It's working fine for me.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off

Forum Jump


All times are GMT -6. The time now is 02:31 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.