DinoNuggies
  • Keyboardist/Classical Guitarist and C++ Software/Game Developer who enjoys Playing Chess, Porting Games, Composing/Transcribing Music, and Playing Jazz.

  • Joined on 2023-05-30
DinoNuggies commented on pull request VoxeLibre/VoxeLibre#3770 2023-06-14 04:54:49 +02:00
Added visible items cooking on the fire

Awesome! So that means the campfires should be working completely

DinoNuggies created pull request VoxeLibre/VoxeLibre#3797 2023-06-14 03:41:09 +02:00
WIP Campfire Visual Food Items
DinoNuggies commented on pull request VoxeLibre/VoxeLibre#3770 2023-06-14 03:33:54 +02:00
Added visible items cooking on the fire

Everything works though besides the items not dropping when the campfire is destroyed, and @PrairieWind said they might know the fix, so I'll create a new PR since I've made newer commits.

DinoNuggies commented on pull request VoxeLibre/VoxeLibre#3770 2023-06-14 03:27:38 +02:00
Added visible items cooking on the fire

If I was to have it global (or local to the file) then the game would only be able to process four food entities at a time. I'm not sure of any other way to have a global list of food entities…

DinoNuggies commented on pull request VoxeLibre/VoxeLibre#3770 2023-06-13 19:33:50 +02:00
Added visible items cooking on the fire

But then it would be global, one of the issues you listed?

DinoNuggies commented on pull request VoxeLibre/VoxeLibre#3770 2023-06-09 19:48:28 +02:00
Added visible items cooking on the fire

52c67005fa/mods/ITEMS/mcl_campfires/api.lua (L57) Storing the entity locations is unnecessary since you can always look up the cooking item index in the food_entity list to get the pos.

How…

DinoNuggies commented on pull request VoxeLibre/VoxeLibre#3770 2023-06-09 19:45:38 +02:00
Added visible items cooking on the fire

I was personally going to have just four entity meta data variables, but you added stuff you had before I got around to it.

I tried that, I couldn't seem to actually get it to work, although…

DinoNuggies pushed to campfire_update at DinoNuggies/MineClone2 2023-06-09 19:43:29 +02:00
6b30cf7240 changed line 82 to vector.new(), and refactored setting food wield item (wield_image doesn't matter)
DinoNuggies commented on pull request VoxeLibre/VoxeLibre#3770 2023-06-08 00:07:42 +02:00
Added visible items cooking on the fire

@MrRar It's my first time working with the Minetest API lol, apologies for irregularities as I got help from Chat GPT. Anyhoo yeah I'm not sure about the wield image but I'll look into it here…

DinoNuggies pushed to campfire_update at DinoNuggies/MineClone2 2023-06-04 21:55:31 +02:00
52c67005fa Removed debug chat messages
DinoNuggies pushed to campfire_update at DinoNuggies/MineClone2 2023-06-04 21:46:08 +02:00
10b7dd213f Food entities don't turn back to mutton when leaving a re-joining now
DinoNuggies pushed to campfire_update at DinoNuggies/MineClone2 2023-06-04 21:20:24 +02:00
d84476337e The food is now oriented the right direction when on the cooking on the campfire, and food entities are removed when the campfire is destroyed, still doesn't drop items though
DinoNuggies pushed to campfire_update at DinoNuggies/MineClone2 2023-06-04 20:28:37 +02:00
48258919d5 Fixed crash when standing on campfire whilst food is cooking
DinoNuggies commented on pull request VoxeLibre/VoxeLibre#3770 2023-06-04 20:06:03 +02:00
Added visible items cooking on the fire

Ok I made a new commit, the food items are local to every campfire via the campfire's meta, and there's only one food entity registered for the campfires. There's still issues like for some reason…

DinoNuggies pushed to campfire_update at DinoNuggies/MineClone2 2023-06-04 20:00:10 +02:00
fe5b07fe8b Made food entities local to evcery campfire, and made one food entity that works for all foods
DinoNuggies commented on pull request VoxeLibre/VoxeLibre#3770 2023-05-31 18:01:41 +02:00
Added visible items cooking on the fire

Yeah I thought there must have been a better way for the entities, will do!

DinoNuggies commented on pull request VoxeLibre/VoxeLibre#3770 2023-05-31 02:45:36 +02:00
Added visible items cooking on the fire

Everything works perfect except for when destroying the campfire while it's cooking. It doesn't drop the items on the fireplace and only removes the visual entities on the fire, however when being…

DinoNuggies pushed to campfire_update at DinoNuggies/MineClone2 2023-05-31 02:41:29 +02:00
bfe30367db modified: mods/ITEMS/mcl_campfires/api.lua
DinoNuggies commented on pull request VoxeLibre/VoxeLibre#3770 2023-05-31 01:21:11 +02:00
Added visible items cooking on the fire

Ok I made all the changes noted, I'll test it out now

DinoNuggies pushed to campfire_update at DinoNuggies/MineClone2 2023-05-31 01:19:24 +02:00
522a602c60 A couple of fixes