What's everyone working on? (tigsource inspired)

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Gunroar:Cannon()
Party member
Posts: 141
Joined: Thu Dec 10, 2020 1:57 am

Re: What's everyone working on? (tigsource inspired)

Post by Gunroar:Cannon() » Sun Dec 13, 2020 6:12 pm

Sounds like a nice game with a unique concept though as for you're crown I think you a little to early for you're declaration :3
me: I don't always code but when I do it's done flawlessly.
also me:

Code: Select all

 function Gunroar:Cannon()
    for x, enemy in ipairs(self.allEnemies) do
        self:Cannon(enemy)
    end
end

Code: Select all

Lua Error: [file Gunroar.lua]:18: C stack overflow

dusoft
Party member
Posts: 125
Joined: Fri Nov 08, 2013 12:07 am

Re: What's everyone working on? (tigsource inspired)

Post by dusoft » Mon Feb 01, 2021 10:25 am

I have been playing with this city transport sim (procedural generation) for some time now. Not that I am working on it regularly, but rather trying to create aan engine that can simulate city transport. This include inhabitants having their goals (home-work, shopping, etc.) + transport options (walking, cycling, driving, riding a bus/metro etc.). There are also some transport hubs such as airports, train station, bus station that generate incoming and outgoing traffic.

So far I have a complete city generation + path finding etc. The engine is also able to load different scenarios, where you can set some parameters for simulation. If anyone wants to join regarding graphics/audio etc., just get in touch.
Screenshot_20210201_112044.png
city transport sim
Screenshot_20210201_112044.png (44.04 KiB) Viewed 3194 times

MorbusKobold
Prole
Posts: 3
Joined: Fri Jan 15, 2021 3:02 pm

Re: What's everyone working on? (tigsource inspired)

Post by MorbusKobold » Mon Feb 01, 2021 10:29 pm

Working on this Masterpiece: https://www.youtube.com/watch?v=CiPZ6_BJL8U

Messing around with Box2D. Learned it yesterday. Making progress so far and just trying to add as many Features before the Code blows up.

User avatar
Gunroar:Cannon()
Party member
Posts: 141
Joined: Thu Dec 10, 2020 1:57 am

Re: What's everyone working on? (tigsource inspired)

Post by Gunroar:Cannon() » Tue Feb 02, 2021 9:38 pm

dusoft wrote:
Mon Feb 01, 2021 10:25 am
This include inhabitants having their goals (home-work, shopping, etc.) + transport options (walking, cycling, driving, riding a bus/metro etc.). There are also some transport hubs such as airports, train station, bus station that generate incoming and outgoing traffic.

So far I have a complete city generation + path finding etc. The engine is also able to load different scenarios, where you can
set some parameters for simulation...
What type of AI do you plan to use? GOAP, state machine or something else?
me: I don't always code but when I do it's done flawlessly.
also me:

Code: Select all

 function Gunroar:Cannon()
    for x, enemy in ipairs(self.allEnemies) do
        self:Cannon(enemy)
    end
end

Code: Select all

Lua Error: [file Gunroar.lua]:18: C stack overflow

dusoft
Party member
Posts: 125
Joined: Fri Nov 08, 2013 12:07 am

Re: What's everyone working on? (tigsource inspired)

Post by dusoft » Tue Feb 02, 2021 9:46 pm

Gunroar:Cannon() wrote:
Tue Feb 02, 2021 9:38 pm
dusoft wrote:
Mon Feb 01, 2021 10:25 am
This include inhabitants having their goals (home-work, shopping, etc.) + transport options (walking, cycling, driving, riding a bus/metro etc.). There are also some transport hubs such as airports, train station, bus station that generate incoming and outgoing traffic.

So far I have a complete city generation + path finding etc. The engine is also able to load different scenarios, where you can
set some parameters for simulation...
What type of AI do you plan to use? GOAP, state machine or something else?
No AI, just state machine-based behavior, i.e. based on the standard 9 to 5 scenario and their rush hours, most of the people would travel from their homes (this is generated at the start) to their work - industry/offices (similar) and back. Plus some transport to shops, fun etc.

I haven't heard about GOAP, I will investigate that option. Thanks.

User avatar
kbmonkey
Party member
Posts: 129
Joined: Tue Sep 01, 2015 12:19 pm

Re: What's everyone working on? (tigsource inspired)

Post by kbmonkey » Sun Feb 07, 2021 12:19 am

dusoft wrote:
Tue Feb 02, 2021 9:46 pm
No AI, just state machine-based behavior, i.e. based on the standard 9 to 5 scenario and their rush hours, most of the people would travel from their homes (this is generated at the start) to their work - industry/offices (similar) and back. Plus some transport to shops, fun etc.

I haven't heard about GOAP, I will investigate that option. Thanks.
You could also go another route and do what simcity / micropolis did. Simulating traffic on (then) limited hardware meant some creative solutions. Traffic was modelled with a simple rule-based system, and the display of traffic leveraged simple cellular automata.

You can read about the micropolis implementation here. Switch to the master branch to see the source.

dusoft
Party member
Posts: 125
Joined: Fri Nov 08, 2013 12:07 am

Re: What's everyone working on? (tigsource inspired)

Post by dusoft » Fri Feb 12, 2021 10:59 pm

kbmonkey wrote:
Sun Feb 07, 2021 12:19 am
dusoft wrote:
Tue Feb 02, 2021 9:46 pm
No AI, just state machine-based behavior, i.e. based on the standard 9 to 5 scenario and their rush hours, most of the people would travel from their homes (this is generated at the start) to their work - industry/offices (similar) and back. Plus some transport to shops, fun etc.

I haven't heard about GOAP, I will investigate that option. Thanks.
You could also go another route and do what simcity / micropolis did. Simulating traffic on (then) limited hardware meant some creative solutions. Traffic was modelled with a simple rule-based system, and the display of traffic leveraged simple cellular automata.

You can read about the micropolis implementation here. Switch to the master branch to see the source.
Cool, thanks for that as well. I think I tried Micropolis long time ago.

I am more aiming for Mobility-style game, though: https://en.wikipedia.org/wiki/Mobility_(video_game)
Just updated to 2020's with pedestrians, cycling as well as different public transport options etc. I am sure traffic simulation is CPU heavy, I tried increasing number of people as well as cars to thousands / tens of thounsands and it was slow. However, it is quite managable otherwise these days.

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests