Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 183 184 [185] 186 187 ... 221

Author Topic: Dwarf Fortress meets The Outer Wilds? "Ultima Ratio Regum", v0.10.1 out Feb 2023  (Read 596220 times)

Dorsidwarf

  • Bay Watcher
  • [INTERSTELLAR]
    • View Profile
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2760 on: January 31, 2016, 05:36:01 pm »

Wow! Great as ever. Just a question - in the donut-shaped castle you showed, there doesn't seem to be a way into the middle bit. Is that intentional?
Logged
Quote from: Rodney Ootkins
Everything is going to be alright

Ultima Ratio Regum

  • Bay Watcher
  • Game Studies Lecturer, "Ultima Ratio Regum" person
    • View Profile
    • Ultima Ratio Regum
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2761 on: January 31, 2016, 07:08:54 pm »

Wow! Great as ever. Just a question - in the donut-shaped castle you showed, there doesn't seem to be a way into the middle bit. Is that intentional?

Oh, yeah, that leads back outside into an interior garden in the castle! But that counts as outside, so it's blank in the interior map.
Logged

Dorsidwarf

  • Bay Watcher
  • [INTERSTELLAR]
    • View Profile
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2762 on: January 31, 2016, 07:53:23 pm »

Wow! Great as ever. Just a question - in the donut-shaped castle you showed, there doesn't seem to be a way into the middle bit. Is that intentional?

Oh, yeah, that leads back outside into an interior garden in the castle! But that counts as outside, so it's blank in the interior map.
I meant that there was no door into it, unless I misun the gif.
Logged
Quote from: Rodney Ootkins
Everything is going to be alright

Ultima Ratio Regum

  • Bay Watcher
  • Game Studies Lecturer, "Ultima Ratio Regum" person
    • View Profile
    • Ultima Ratio Regum
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2763 on: February 01, 2016, 04:33:59 pm »

Oh, whoops, you're right! Well spotted. Fixed.
Logged

Dorsidwarf

  • Bay Watcher
  • [INTERSTELLAR]
    • View Profile
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2764 on: February 01, 2016, 05:05:19 pm »

Oh, whoops, you're right! Well spotted. Fixed.

On the subject of doors, I somet see towns in heavily forested areas where trees block the only door to some houses.
Logged
Quote from: Rodney Ootkins
Everything is going to be alright

Ultima Ratio Regum

  • Bay Watcher
  • Game Studies Lecturer, "Ultima Ratio Regum" person
    • View Profile
    • Ultima Ratio Regum
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2765 on: February 02, 2016, 06:12:29 am »

Oh, whoops, you're right! Well spotted. Fixed.

On the subject of doors, I somet see towns in heavily forested areas where trees block the only door to some houses.

Huh. That shouldn't be possible (though you should still be able to get in diagonally!)
Logged

Ultima Ratio Regum

  • Bay Watcher
  • Game Studies Lecturer, "Ultima Ratio Regum" person
    • View Profile
    • Ultima Ratio Regum
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2766 on: February 02, 2016, 08:01:38 am »

Meanwhile, emerging from recent discussions between myself and Darren Grey, a very important thread about the future of Roguelike Radio has just gone up - all feedback here/Reddit/elsewhere welcome! https://www.reddit.com/r/roguelikes/comments/43u2ju/the_future_of_roguelike_radio/
Logged

Ultima Ratio Regum

  • Bay Watcher
  • Game Studies Lecturer, "Ultima Ratio Regum" person
    • View Profile
    • Ultima Ratio Regum
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2767 on: February 07, 2016, 06:05:43 pm »

A big URRpdate this week, as we hit around 80% completion on the scheduling and pathfinding for all the world’s important NPCs, and also add some smaller additions like banners, drawbridge chains, and finishing off the upper floors of castles. At this point you can now track NPCs leaving their home and going INSIDE buildings – and this again works regardless of what the player does, where the player is, what maps/buildings have thus far been spawned, etc. This is, to put it mildly, a landmark moment. It works completely for guards in mints, and banks (though I have yet to test arenas and archives, but those are the first tasks I’ll be working on checking this coming week). It’s always hard to tell how much code written to deal with Situation A will actually also apply to Situation B until you give it a shot, when the Situations in question are so complex and have so many variables, but I think this code should be entirely transferable. I hope.

Scheduling

So, it’s time for some gifs! Various gifs here of guards leaving districts, entering districts, entering buildings, leaving buildings, exchanging guard duty with others, etc. Guards now work correctly for all outside guards, and almost all inside guards work correctly, and any and every weird combination of movement across the map and the player’s actions also, as far as I can tell, work perfectly.











However, all of this has given rise to a very amusing bug. So, consider this: the world map is split into map grids, each of which is 200×200 tiles when spawned but naturally starts unspawned, and each map grid might contain a range of buildings. When the world is generated I can check exactly what buildings will be in each district, but naturally in most cases I don’t know exactly where each one will be placed – since that would entail spawning the entire map, on the human rather than world scale, at world gen! Which would be absurd and take probably the best part of an hour or something, possibly more (I’ve never tried it and don’t intend to).

Now, consider this. The player is in Map Grid A. In Map Grid B is a guard, who is due to leave their house and move into Map Grid A, to relieve another guard on guard duty. Map Grid B has never been spawned. How long, therefore, should this first action – moving from B to A – take? No matter how any map grid spawns, moving from any point of a map grid to an appropriate edge can never take more than 200 turns, and therefore all movement of this sort, in unspawned areas, takes 200 turns. Were it spawned, it might “actually” take 20 turns or 190, but we have no idea what the correct number would be until spawned, and since it hasn’t been spawned, I play it safe and assume 200.

With me so far? Splendid. Now, let’s say that the guard leaves their (unspawned and nonexistent) home at turn 1000, and therefore is due to leave Map Grid B and enter Map Grid A at 1200. Now, the player is sat in Map Grid A. If the player waits until turn 1190, and then enters Map Grid B, it will then spawn all the buildings and have the NPC do 190 turns of their action. However, what if this building is near the edge to Map Grid A? Let’s say they get there with 90 turns left. Ordinarily, they would go through, and then take 90 turns on the other side… but that would mean if the player immediately went back through, from the player’s perspective, upon returning to Map Grid B, it would appear as if in two turns an NPC had just appeared and teleported ninety tiles up the map grid! Therefore, if an NPC is just about to cross grids, and the player is about to enter that grid, it takes them to an earlier step in their movement so that the player, just entering Map Grid A, sees the NPC for a few turns before they go into Map Grid B. However, what this means, is that if the player keeps hopping back and forth, the NPC keeps getting pushed back and never actually moves through until the player goes somewhere else! It’s very silly. I’m not sure how to fix it yet, though it probably needs some kind of counter that notes if the NPC has already been pushed back once in its current district, and resets after moving to a new grid. But still: it’s an interesting example of the complexity of the system, and some of the weird situations that arise, and how I’ve tried fixing them.

To further illustrate this point, here are some examples of the scenarios that can arise:

- Player is in a map grid and an NPC moves into that map grid, and should physically spawn.
- Player moves into a map grid, and all stationary NPCs outside buildings (e.g. guards) must spawn.
- Player moves into a map grid and another important NPC is moving in that map grid, and must spawn in the right place, an appropriate way along their schedule according to the timing of their schedule.
- The player follows an NPC into a new grid, and the NPC should be x turns away from the edge of the grid once they are spawned, despite having been unspawned after leaving the player’s grid.
- NPC enters unspawned building, player stays in grid, things must happen in building that doesn’t exist.
- Player is in grid with unspawned building and NPCs within that unspawned building need to leave.
- Player is in grid, NPC enters building, player leaves, NPC must be handle its behaviour in unspawned building and unspawned grid.
- As above, but player enters building first, leaving a spawned but unloaded building in a spawned but unloaded grid.
- Player enters building part-way through NPCs doing behaviours within it, causing it to spawn for the first time, and they should all be at the right part of their schedules…

Basically, consider every variable of 1) the player’s action, 2) spawned grids, 3) spawned buildings, and 4) important NPCs moving through all these, and I cannot begin to describe all the variations. Naturally in many cases a piece of code I wrote to resolve Scenario #14 also worked for Scenario #26, and so forth, but in many cases it didn’t and a massive amount of code had to be written to handle every possible variation and permutation. But I think a large part of it is now done.

Drawbridge Chains

What is says on the tin, really.



Next Week?

Dare I hope… AI pathfinding/scheduling… finished?!?!?!?!
Logged

BlindKitty

  • Bay Watcher
    • View Profile
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2768 on: February 08, 2016, 07:48:33 am »

It's looking so staggeringly awesome it's making me green. With jealousy, of course. ;) I have just one question, though: how do you ensure that crossing a map tile never takes more than 200 steps? I mean, if there is a river through the middle, and a plethora of buildings, especially in slums or poor districts, with winding roads, one would guess it is possible that the shortest route from random house (where the guard may reside) to the exit on the other end of the map might be longer than 200 steps, due to all that meandering. Are you taking any steps to ensure that there is no such possibility? I'm curious, since that's so big project and awesomely intricate - watching it grow is like watching Sagrada Familia being build, only over a decade, not a century. :)
Logged
My little roguelike craft-centered game thread. Check it out.

GENERATION 10: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

SOLDIER First

  • Bay Watcher
  • Trans fucking rights, baby.
    • View Profile
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2769 on: February 08, 2016, 07:59:06 am »

ptw
Logged
Black lives matter.

Dorsidwarf

  • Bay Watcher
  • [INTERSTELLAR]
    • View Profile
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2770 on: February 09, 2016, 01:38:00 pm »

Nice stuff, I really like it!

Just a question, have there been any changes in this version regarding movement? It's a pain to navigate places with circle ideologies on foot, because you can only move in cardinal directions, and have to hammer on the keys to follow curves, since if you're holding forewards, then hit left, and release left, you don't resume moving forwards.

Asking because on-foot exploration seems to be a really important part of the game.
Logged
Quote from: Rodney Ootkins
Everything is going to be alright

puke

  • Bay Watcher
    • View Profile
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2771 on: February 09, 2016, 02:02:15 pm »

you can only move in cardinal directions

I have not tried the latest version, but it looks like this is in:

The screenshot three posts above yours mentions 9-directional movement, with or without a numpad.
Logged

Ultima Ratio Regum

  • Bay Watcher
  • Game Studies Lecturer, "Ultima Ratio Regum" person
    • View Profile
    • Ultima Ratio Regum
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2772 on: February 09, 2016, 05:50:31 pm »

It's looking so staggeringly awesome it's making me green. With jealousy, of course. ;) I have just one question, though: how do you ensure that crossing a map tile never takes more than 200 steps? I mean, if there is a river through the middle, and a plethora of buildings, especially in slums or poor districts, with winding roads, one would guess it is possible that the shortest route from random house (where the guard may reside) to the exit on the other end of the map might be longer than 200 steps, due to all that meandering. Are you taking any steps to ensure that there is no such possibility? I'm curious, since that's so big project and awesomely intricate - watching it grow is like watching Sagrada Familia being build, only over a decade, not a century. :)

Haha, thank you! Er, basically, it wasn't something I realized I needed to go until after grid generation was almost finished, but I looked through even the most unlikely variants of generated grid, and (I am 99% sure...) it is impossible for any to generate like that. Even rare grids like lots of rivers, few bridges, blah blah, still already had bridges placed in a way that would usefully maximize ease of travelling. All the generation algorithms are balanced between "realism" and "not being bloody annoying to navigate", and the latter of those really helped out! :)

ptw

Good move!

Nice stuff, I really like it!

Just a question, have there been any changes in this version regarding movement? It's a pain to navigate places with circle ideologies on foot, because you can only move in cardinal directions, and have to hammer on the keys to follow curves, since if you're holding forewards, then hit left, and release left, you don't resume moving forwards.

Asking because on-foot exploration seems to be a really important part of the game.

Thanks! Oh, you can use diagonals in the current version - numpad should work, and shift+N activates a "numpad" on the main keyboard (QWE, ASD, ZXC)

you can only move in cardinal directions

I have not tried the latest version, but it looks like this is in:

The screenshot three posts above yours mentions 9-directional movement, with or without a numpad.

^ yup
Logged

Magnumcannon

  • Bay Watcher
  • Deep waters don't run still
    • View Profile
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2773 on: February 09, 2016, 06:20:55 pm »

I've heard about this game some time ago and just now i found out a thread about it existed on B12. PTW!
Logged

Dorsidwarf

  • Bay Watcher
  • [INTERSTELLAR]
    • View Profile
Re: Ultima Ratio Regum - roguelike/Borges/Eco, v0.7 released!
« Reply #2774 on: February 10, 2016, 02:30:46 am »

I was, uh, forgetting that Cardinal doesn't include the diagonals, but the rest of the point still stands - it would be nice if holding one direction, and hitting a diagonal/side key once didn't stop the held-down key from counting.
Logged
Quote from: Rodney Ootkins
Everything is going to be alright
Pages: 1 ... 183 184 [185] 186 187 ... 221