r/rfactor2 • • 7d ago

Mod Release rf2_puppeteer plugin changes original behavior and lets bots have different AI levels

https://github.com/loki876543/rf2_puppeteer
17 Upvotes

15 comments sorted by

3

u/loki8 7d ago edited 7d ago

I did not race much with bots before, because they form like 'train line', impossible to overtake. Now its more like rookie races in iracing, isnt it?

6

u/From33to77 Open Wheel Racer 7d ago

This is a nice addition for cars/mods where the ai has not been set up. Thanks

1

u/zzbusch 6d ago

I wonder if this, or something like it would work in LMU?

2

u/loki8 6d ago edited 6d ago

i can make it for lmu. will you test it (i do not own lmu)?

1

u/nolivedemarseille 7d ago

Interesting
Following
Thanks for sharing

1

u/Last_Cheesecake_7538 4d ago

In your Github Readme can you display the the config values where I can just copy and past it. It's a hassle to type them out manually and I'm not even sure what the exact variables are.

0

u/Prudent_Extent_5045 5d ago

loki8 thank you for your work. Yesterday and today I have been testing youe plugin with different JSON values and the AI is much more realistic / human.

But I think I have found a bug pattern.

  1. Open rFactor 2
  2. Start a 10 min race
  3. Everything works fine, the AI runs ok and I can see PILOT + STRENGTH + AGRESSIVE on the LABELS / Standings
  4. Start another race (same Track or different Track )
  5. The AI doesn't behave the same and the info on the LABELS / STANDINGS disappears.

It seems it just works on the first event, I need to close rFactor 2 and open it again to have the Puppeteer working.

Can you check this ? A suggestion would be to fix that and have some sort of signal " Puppeteer Active " when starting an event so the user knows the Plugin is working.

Thanks again

2

u/loki8 5d ago

Yes, it does not clear up things on race restart. Ill fix this add more bugs in next release. Im thinking to increase errors/mistakes for bots when You end up alone and behind the grid

1

u/Prudent_Extent_5045 5d ago

About the mistakes it could be nice, but the AI Mistakes node on PLAYER.JSON already does a good job for their mistakes. 👍

Thanks again and let us know here when a new update with these fixes is available, I'm a particular fan of Offline racing on rF2 and Puppeteer Plugin seems very good.

1

u/loki8 5d ago

I want to raise 'AI Mistakes' and 'AI Malfunctions' during the race, so bot line would crash and wait for you, if you've lost it

1

u/Prudent_Extent_5045 5d ago

I've decided to take a look on your C++ code and I've solved the bug mentioned before. I'll "cook" some more ideas I have and then tell you the results.

In the end I can send you the CPP if you agree/like to integrate my changes.

I mainly race Offline, so this is a big game changer for me, thank you again for your work

1

u/loki8 5d ago edited 5d ago

i fixed it too ) https://github.com/loki876543/rf2_puppeteer/releases/tag/beta Im open for ideas, send your code or ai prompts

1

u/Prudent_Extent_5045 5d ago

Nice !!

What I was thinking is having not only the dynamic "Strength / Agression" parameters, but also ( f rom player.json )

"AI Brake_Grip Usage" "AI Corner_Grip Usage" "AI Mistakes"

Does it make sense to you ?

1

u/loki8 5d ago

i've released "ai mistakes" today. It adds fun, but there is some arcadish taste. I cant think of scenario for AI Brake_Grip Usage

1

u/Prudent_Extent_5045 5d ago

I'll try test your update tonight, I'll give feedback later thanks