ExtReMLapin / gHomes

gHomes for Garry's mod | All-in-one property solution [Buy/rent from NPC or from 3D/2D Panel]
MIT License
34 stars 5 forks source link

GHomes not working on Helix #9

Closed Teskocf closed 4 years ago

Teskocf commented 4 years ago

I get this [ERROR] addons/ghomes/lua/ghomes_system/client/dermabuddy.lua:67: attempt to concatenate a nil value

  1. confirmcreation - addons/ghomes/lua/ghomes_system/client/dermabuddy.lua:67
    1. leftclick - addons/ghomes/lua/weapons/gmod_tool/stools/enhanced_homes.lua:572
    2. v - addons/ghomes/lua/weapons/gmod_tool/stools/enhanced_homes.lua:590
      1. unknown - lua/includes/modules/hook.lua:84

befor the error i did a change to sh_compatibility/main.lua and returned at getCurGamemode() "ix" because it everytime used the darkrp gamemode

ExtReMLapin commented 4 years ago

Well first, the issue is it was designed to work with players, not characters, it's based on steamID, not characters ID

I'll take a look at the error, but when reading the code it seems i did fuck something up

Teskocf commented 4 years ago

Okay is there a way that you could save it on character ID's ? Not SteamID's ? Would be very nice

ExtReMLapin commented 4 years ago

I edited the code, can you give another try ?

ExtReMLapin commented 4 years ago

For the identity thing i'll do something later

Teskocf commented 4 years ago

[ERROR] addons/ghomes/lua/ghomes_system/dlcs/dlc1/server/sv_test.lua:47: attempt to call method 'isCP' (a nil value)

  1. canPlayerSpawnInHouse - addons/ghomes/lua/ghomes_system/dlcs/dlc1/server/sv_test.lua:47
    1. randomSpawn - addons/ghomes/lua/ghomes_system/dlcs/dlc1/server/sv_test.lua:55
    2. v - addons/ghomes/lua/ghomes_system/dlcs/dlc1/server/sv_test.lua:85
      1. unknown - lua/includes/modules/hook.lua:84

[WCD] »» No hotfixes applied [WCD] »» Initiating player Teskocf [LOG] Teskocf loaded the character 'Dean Tesko2' 1 1 1 gurken

[ERROR] addons/ghomes/lua/ghomes_system/dlcs/dlc1/server/sv_test.lua:47: attempt to call method 'isCP' (a nil value)

  1. canPlayerSpawnInHouse - addons/ghomes/lua/ghomes_system/dlcs/dlc1/server/sv_test.lua:47
    1. randomSpawn - addons/ghomes/lua/ghomes_system/dlcs/dlc1/server/sv_test.lua:55
    2. v - addons/ghomes/lua/ghomes_system/dlcs/dlc1/server/sv_test.lua:85
      1. unknown - lua/includes/modules/hook.lua:84
      2. Spawn - [C]:-1
      3. func - gamemodes/helix/gamemode/core/libs/sh_character.lua:900
      4. unknown - lua/includes/extensions/net.lua:32

Should i temp. remove the DLC ?

ExtReMLapin commented 4 years ago

You can remove the DLC as you probably don't care about it, I forgot to implement isCP method to helix module

ExtReMLapin commented 4 years ago

you can remove the whole dlcs folder

Teskocf commented 4 years ago

[ERROR] addons/ghomes/lua/ghomes_system/sh_compatibility/darkrp.lua:98: attempt to call method 'setKeysNonOwnable' (a nil value)

  1. gHomeizeDoor - addons/ghomes/lua/ghomes_system/sh_compatibility/darkrp.lua:98
    1. generatedoors - addons/ghomes/lua/ghomes_system/server/houses.lua:30
    2. func - addons/ghomes/lua/ghomes_system/server/network.lua:332
      1. unknown - lua/includes/extensions/net.lua:32

When creating house

Teskocf commented 4 years ago

https://i.imgur.com/x50BFrs.png and is it correct that i cant select new property ?

ExtReMLapin commented 4 years ago

in the server console do :

lua_run PrintTable(DarkRP)

Teskocf commented 4 years ago

PrintTable(DarkRP)... formatMoney = function: 0x2ec7ab60

ExtReMLapin commented 4 years ago

Some shit ass addon developer is creating the darkrp table because he's a shit coder

ExtReMLapin commented 4 years ago

okay now do

PrintTable(debug.getinfo(DarkRP.formatMoney))

Teskocf commented 4 years ago

currentline = -1 func = function: 0x2ec7ab60 isvararg = false lastlinedefined = 4 linedefined = 2 namewhat = nparams = 1 nups = 0 short_src = addons/wcd/lua/wcd/wrapper/wcd_helix.lua source = @addons/wcd/lua/wcd/wrapper/wcd_helix.lua what = Lua

Williams Car dealer uff

ExtReMLapin commented 4 years ago

what a surprise

Teskocf commented 4 years ago

^^

Teskocf commented 4 years ago

To be honest i would do this in a config like you can select wrapper = "ix"

ExtReMLapin commented 4 years ago

If you legally downloaded this addon, be sure you have the latest version (i doubt he ever fixed this shit code), if you already do, get rid of it and all of his addons, he can't code shit.

To be honest i would do this in a config like you can select wrapper = "ix"

The DarkRP table creation should not happen in the first place, you can code it yourself if you want or edit the code in here

Teskocf commented 4 years ago

So i just return ix like last time ?

ExtReMLapin commented 4 years ago

just replace the func by

local function getCurGamemode()
    return "ix"
end

that's dirty but whatever

Teskocf commented 4 years ago

https://i.imgur.com/x50BFrs.png and is it correct that i cant select new property ?

Teskocf commented 4 years ago

[ERROR] addons/ghomes/lua/ghomes_system/sh_compatibility/darkrp.lua:98: attempt to call method 'setKeysNonOwnable' (a nil value)

1. gHomeizeDoor - addons/ghomes/lua/ghomes_system/sh_compatibility/darkrp.lua:98

2. generatedoors - addons/ghomes/lua/ghomes_system/server/houses.lua:30
   3. func - addons/ghomes/lua/ghomes_system/server/network.lua:332
   4. unknown - lua/includes/extensions/net.lua:32

When creating house

Working !

ExtReMLapin commented 4 years ago

you should be able to left click to create new property btw

Teskocf commented 4 years ago

Ah nevermind i thought is was an other feature or something

Thanks for the fast and good support