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 Lurken is offline
Registered User
 
Join Date: Aug 2018
Posts: 12
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_190412_Release.rar (78.6 KB, 5 views)

Last edited by Lurken; 04-12-2019 at 03:45 AM.
Reply With Quote
  #2  
Old 08-16-2018, 04:58 AM
StainlessSteelCynic's Avatar
StainlessSteelCynic StainlessSteelCynic is offline
Registered User
 
Join Date: Feb 2009
Location: Western Australia
Posts: 1,730
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 Lurken is offline
Registered User
 
Join Date: Aug 2018
Posts: 12
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 User
 
Join Date: Feb 2009
Location: Western Australia
Posts: 1,730
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: 3,861
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.
__________________
Here I sit, brokenhearted
Thought I'd sh*t, but only farted
--In a toilet stall, A Bldg boys bathroom, Kalaheo HS, 1976

Entirely too much T2K stuff here: www.pmulcahy.com
Reply With Quote
  #6  
Old 08-16-2018, 08:58 AM
Lurken Lurken is offline
Registered User
 
Join Date: Aug 2018
Posts: 12
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 Lurken is offline
Registered User
 
Join Date: Aug 2018
Posts: 12
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 Lurken is offline
Registered User
 
Join Date: Aug 2018
Posts: 12
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: 3,861
Default

I got a 404 error when I tried to download it.
__________________
Here I sit, brokenhearted
Thought I'd sh*t, but only farted
--In a toilet stall, A Bldg boys bathroom, Kalaheo HS, 1976

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: 3,861
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...
__________________
Here I sit, brokenhearted
Thought I'd sh*t, but only farted
--In a toilet stall, A Bldg boys bathroom, Kalaheo HS, 1976

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 Lurken is offline
Registered User
 
Join Date: Aug 2018
Posts: 12
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: 26
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 Lurken is offline
Registered User
 
Join Date: Aug 2018
Posts: 12
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 Lurken is offline
Registered User
 
Join Date: Aug 2018
Posts: 12
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
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:50 AM.


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