Garry's Mod

Garry's Mod

View Stats:
Faxton Apr 8, 2013 @ 9:58am
Some issues with propcore in singleplayer.
While propcore seems to load in singleplayer, the expression I use for wheels on my cars doesn't seem to work due to the commands "setAng" and "propFreeze" not being recognised. This is not an issue in multiplayer. I'll post the entire expression below, maybe the issue isn't just an issue for me:

"
@name SETANG STEERING
@inputs A D CHASSIS:entity
@persist SLAVE:entity [TURN_RATE TURN_ANGLE TURN TILTRATE TILT]
@model models/hunter/blocks/cube05x05x05.mdl

if (first()||duped()) {

interval(10)
entity():setMass(1500)
TURN_RATE = 1
TURN_ANGLE = 38
SLAVE = entity()
} elseif (clk()) {
interval(10)

if (!SLAVE:isPlayerHolding()) {
TURN += clamp((A-D)*TURN_ANGLE - TURN, -TURN_RATE, TURN_RATE)
SLAVE:setAng(CHASSIS:toWorld(ang(0, TURN,0 )) )
SLAVE:propFreeze(1)
}
}
"

I fear the paste here might not come out correctly, but the fault is with the last two lines with text.
< >
Showing 1-12 of 12 comments
ertesda Apr 8, 2013 @ 10:00am 
Hmm...I can´t spot any mistakes right now,but what about errors in console shortly after spawning the chip?
ertesda Apr 8, 2013 @ 10:01am 
Also,try to use [code+] and [/code+] (without plusses)
Faxton Apr 8, 2013 @ 10:22am 
This is everything the console gives me:
"
sv: No such function: entity:setAng(angle) at line 18, char 15
"

I get the feeling that this is something that's messed up in the garry's mod directory on my drive, works perfectly in all multiplayer servers that I've visited.
Last edited by Faxton; Apr 8, 2013 @ 10:23am
ertesda Apr 8, 2013 @ 10:23am 
It seems that there is something wrong with your Version of Wiremod. Update it and tell me please! :)
Faxton Apr 8, 2013 @ 10:41am 
I did that before asking here actually, but maybe I've installed it wrong. I put the wire folder on a drive separate from my SSD, and did the SVN Checkout on that folder. When that was completed, I copied the "wire", "lua" and "Adv Duplicator" folders over to my Garrysmod addon folder. Is this an outdated way of doing it? I just started playing again yesterday, and I think that's how it was done in the past.
ertesda Apr 8, 2013 @ 10:46am 
It should work that way.But only to test EVERYTHING: try this in console:
wire_expression2_extension_enable propcore
Faxton Apr 8, 2013 @ 10:57am 
Got this:


] wire_expression2_extension_enable propcore
]
Extension 'propcore' is already enabled. Did you remember to reload Expression 2 using the console command 'wire_expression2_reload'?
] wire_expression2_reload
]
Calling destructors for all Expression2 chips.
Reloading Expression2 extensions.
Couldn't include file 'includes\modules\glon.lua' (File not found) (<nowhere>)
Calling constructors for all Expression2 chips.
Done reloading Expression2 extensions.


Still nothing, but it made me wonder if glon.lua has anything to do with it.
Last edited by Faxton; Apr 8, 2013 @ 10:57am
Red Machina Apr 14, 2015 @ 5:52pm 
i have the same poblem........
死烏 Sep 12, 2015 @ 1:44am 
Wow ertesda thx, i could think that was just a console command.
CristopherFIRE Oct 9, 2021 @ 11:47pm 
This is so complex that i got the bottom of it but still no hope... My only way to solve this is playing CFC
CristopherFIRE Oct 31, 2021 @ 3:17am 
say in console " wire_expression2_extension_enable propcore" and that is all
xmuriy Jun 23, 2022 @ 6:29am 
thx
< >
Showing 1-12 of 12 comments
Per page: 1530 50

Date Posted: Apr 8, 2013 @ 9:58am
Posts: 12