https://linen.dev logo
Join Discord
Powered by
# 🏰crafty
  • r

    rafaelcastrocouto

    01/25/2023, 1:38 PM
    https://godotengine.org/article/dev-snapshot-godot-4-0-beta-15/
  • r

    rafaelcastrocouto

    01/25/2023, 1:40 PM
    godot 4 will allow extending custom nodes ... this might be very important for our needs
  • y

    Yendor

    01/25/2023, 1:42 PM
    Those Gdextension system is so nice
  • b

    bobit

    02/10/2023, 12:08 AM
    What does that mean?
  • b

    bobit

    02/10/2023, 12:08 AM
    You could already extend scripts and nodes right?
  • b

    bobit

    02/10/2023, 12:09 AM
    Or do you mean at runtime?
  • r

    rafaelcastrocouto

    02/10/2023, 1:01 AM
    for eg. our units are all inheriting the base custom Unit class (
    class_name Unit
    ), but our goap AI agents live in a node inside the unit scene and they extend the basic godot node (
    extends Node
    ). With the new version we would be able to create a class that extendeds our Units (
    extends Unit
    ) and this will give us a lot of flexibility
  • b

    bobit

    02/10/2023, 3:30 AM
    Hmmm I guess I thought it was already this way, shows I haven't done much maybe
  • r

    rafaelcastrocouto

    02/15/2023, 8:58 AM
    https://godotengine.org/article/release-candidate-godot-4-0-rc-2/
  • r

    rafaelcastrocouto

    02/15/2023, 8:59 AM
    now it supports JSON edit
  • e

    erlend

    02/15/2023, 9:00 AM
    Oh it’s at RC now, I hadn’t even noticed!
  • l

    lenscas

    02/15/2023, 9:00 AM
    yep, we are getting close :)
  • l

    lenscas

    02/15/2023, 9:00 AM
    well, "close" I suppose. Who knows how long this cycle lasts 😅
  • r

    rafaelcastrocouto

    02/15/2023, 9:01 AM
    we will also get support for multiline comments! i like it very much
  • l

    lenscas

    02/15/2023, 9:05 AM
    I'm excited for the fact that the .NET integration is now based on source generators. Yes, it means a lot more work is needed to get it to work with F# but it also means that we can create our own glue instead. Already have some plans to get the Godot F# integration better thanks to this change :)
  • d

    Diahborne

    02/20/2023, 7:11 PM
    How are the Crafty Components doing?
  • r

    rafaelcastrocouto

    02/20/2023, 8:58 PM
    they are still not ready to be split. i was focused on making everything work (again) and now I'll focus on the campaign, so it might take a while.
  • r

    rafaelcastrocouto

    02/20/2023, 9:00 PM
    on the bright side I've met some more experienced godot devs here in spelkolectivet and they will help me make the components even better
  • d

    Diahborne

    02/20/2023, 9:03 PM
    Alright that's great to hear. Keep up the great work, rafa zero.
  • r

    rafaelcastrocouto

    02/25/2023, 10:45 AM
    https://godotengine.org/article/release-candidate-godot-4-0-rc-5/
  • r

    rafaelcastrocouto

    02/25/2023, 6:29 PM

    https://i.redd.it/ou927127ybc41.png▾

  • r

    rafaelcastrocouto

    02/27/2023, 12:35 PM
    thx to the guy that made the image above I learned a lot of godot inner workings and now I have a lot of improvements to make to our code. During our chat/lesson I asked him to open an issue so I would not forget the tip, he was really helpfull and his nick is TheDuriel. We were on a previous discussion and we had completely opposite opinions on an issue I've opened on godot proposal's git rep and now I got to meet him in person. Amazing coincidence and a reminder to always be nice on the internet. You might soon be face to face with anyone you talk to and being polite will avoid any regrets.
  • d

    Diahborne

    03/01/2023, 4:53 AM
    Hello so, I heard Godot 4 is releasing soon.
  • e

    erlend

    03/01/2023, 6:37 AM
    Yup! Weekly release candidates coming out at this point.
  • r

    rafaelcastrocouto

    03/01/2023, 1:38 PM
    https://github.com/godotengine/godot/releases/tag/4.0-stable
  • r

    rafaelcastrocouto

    03/01/2023, 1:39 PM
    I've checked and I really think it's worth to withhold our migration til some things are properlly fixed.
  • r

    rafaelcastrocouto

    03/03/2023, 12:14 PM
    I've moved our camera scene and script to autoloads and renamed them Crafty_camera. It's probably gonna be the first crafty module since it's pretty simple and it's only supposed to pan, zoom and respect map limits in different screen sizes and aspect ratios (also send signals for the minimap cam_rect). After creating the resourses files to hold our dialog data, I'm gonna try do make some kind of story board for our campaign. Now that we have the building blocks to deliver it, I'm feeling that I shouldn't jump straight to the code and first try to make a consistent plan to avoid going back and forward too much.
  • e

    erlend

    03/03/2023, 12:15 PM
    First crafty module, huzzah!
  • r

    rafaelcastrocouto

    03/08/2023, 2:10 PM
    While reimplementing our goap AI system in JS I realized we can improve our implementation a lot. For eg. we are currently not simulating the state change after the action happens ... and we are basically just using the current state in our action validation. If we use both previous and next states we can have smarter AI that does things like:
    Copy code
    validate (prevState, nextState):
      return nextState.player.wood > prevState.player.wood
    }
    and only take an action if the future state is actually better instead of "assuming" it. This makes the goap system heavier on one hand since it's actions will be simulating the future and I'll have to add a new methods to "convert" goap actions into unit actions. But it will also mean that the goap actions can be lighter and just show the value changes instead of controling the units actions. It will also make our system closer to a real STRIPS planning architecture.
  • r

    rafaelcastrocouto

    05/02/2023, 6:59 PM
    We are on our way with our migration to 4.0 ... as expected some new bugs appeared, but so far they are all already listed on godot's issues and they've been flagged as bugs so there will probably be a quick solution. And I'm getting help with the skills again, so we will get a 4.0 release sooner then I expected!