Chaosforge Forum

  • November 01, 2024, 11:49
  • Welcome, Guest
Please login or register.



Login with username, password and session length

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - gindandcubes

Pages: [1]
1
Modding / How to add destructible crates in 0.9.9.8?
« on: August 11, 2024, 08:06 »
I'm trying to work on a mod idea, and I need destructible ice walls.
First, I tried the ice wall tiles, but this did not seem to work. I thought it would, because the ice walls in the frozen level event can be destroyed pretty easily. I did some digging and I think there's supposed to be a global flag somewhere for these tiles to be destroyed, so I pursued other options.

I tried copying the "register_cell "crate_ammo"" bit from the cells.lua and then making the color bright blue. However, this did not work at all, as hitting these cells point blank with a shotgun did not destroy them.
Next, I looked at milibase.lua in the source code, and found that one should really only have to call "['%'] = "crate_ammo"" to place crate cells, so I tried that. It may work on 0.9.9.7, but not in 0.9.9.8, even though the military base works just fine lol

I tried calling an ammo crate just like in the milibase.lua, but still, even with a plasma shotgun right up next to it, I can't destroy the crate.

What is possibly going on?

2
Howdy

I'm trying to get the inferno module working with 0.9.9.7.

However, I don't know much Lua, but because my career is programming (I use python and c++ extensively in my field), I thought it wouldn't be too difficult.

I get an error saying that Doomrl is trying to access a non declared variable "Level". The line is:

Code: [Select]
rawset(Level, "clear", function()
 ...code here ...
)


I did some poking around and found that Level is supposed to be a table object, and that global variables don't need to be declared as such.

Whats wrong here? Did something fundamental change in the modding api between '.6 and '.7?

Pages: [1]