Hug Support for Vanilla Chars

[Open Assets] Hug Support for Vanilla Chars v2

This content may be freely modified and/or maintained by anyone.
just fyi, the script raises this lua warning when someone becomes spectator:

Code:
WARNING: ...portForVanillaChars-Beta-v1.2.pk3|Lua/LUA_ALLHUG.lua:252: attempt to index field 'mo' (a nil value)
stack traceback:
    ...portForVanillaChars-Beta-v1.2.pk3|Lua/LUA_ALLHUG.lua:252: in function <...portForVanillaChars-Beta-v1.2.pk3|Lua/LUA_ALLHUG.lua:228>

this happens because player.mo is nil on a spectator, so you need to handle that case. the easiest way to handle this ime is just to check if this on the first line of the function in question and just return if it's nil, for example:

Code:
local function DoAThing(player)
  if not player.mo then
    return
  end
  -- other stuff
end
 
csean07 ☆Kori☆ updated Hug Support for Vanilla Chars with a new update entry:

New And Updated sprites for 2.2.15+

View attachment 170712
Hi! So I haven't been active in the SRB2 community that much, mainly since I had interest with other stuff outside of SRB2. But now that I'm back for some time, I'll be actively working on other stuff for this game (can't say i promise :p).

Anywho, lets get back on-topic. Deoxyius and I have made changes to the old hug sprites to fit in with the newly resprited cast of SRB2. Which also means? ...Well, which means that this mod is finally completed...

Read the rest of this update entry...
 

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top