Skip to content

Commit

Permalink
Fixed: Logging numbering is always zero when logging in the console i…
Browse files Browse the repository at this point in the history
…s used

Removed: Ghost entity's shadow to obtain higher FPS
  • Loading branch information
dvdvideo1234 committed Jan 19, 2016
1 parent c655bdd commit 7da1b92
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lua/autorun/trackassembly_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ asmlib.SetIndexes("V",1,2,3)
asmlib.SetIndexes("A",1,2,3)
asmlib.SetIndexes("S",4,5,6,7)
asmlib.InitAssembly("track","assembly")
asmlib.SetOpVar("TOOL_VERSION","5.177")
asmlib.SetOpVar("TOOL_VERSION","5.178")
asmlib.SetOpVar("DIRPATH_BAS",asmlib.GetOpVar("TOOLNAME_NL")..asmlib.GetOpVar("OPSYM_DIRECTORY"))
asmlib.SetOpVar("DIRPATH_EXP","exp"..asmlib.GetOpVar("OPSYM_DIRECTORY"))
asmlib.SetOpVar("DIRPATH_DSV","dsv"..asmlib.GetOpVar("OPSYM_DIRECTORY"))
Expand Down
5 changes: 5 additions & 0 deletions lua/trackassembly/trackasmlib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@ local function Log(anyStuff)
SetOpVar("LOG_CURLOGS",nCurLogs)
else
print(FormatNumberMax(nCurLogs,nMaxLogs).." >> "..tostring(anyStuff))
nCurLogs = nCurLogs + 1
if(nCurLogs > nMaxLogs) then
nCurLogs = 0
end
SetOpVar("LOG_CURLOGS",nCurLogs)
end
end
end
Expand Down
1 change: 1 addition & 0 deletions lua/weapons/gmod_tool/stools/trackassembly.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,7 @@ end
function TOOL:UpdateGhost(oEnt, oPly)
if(not (oEnt and oEnt:IsValid())) then return end
oEnt:SetNoDraw(true)
oEnt:DrawShadow(false)
local stTrace = utilTraceLine(utilGetPlayerTrace(oPly))
if(not stTrace) then return end
local trEnt = stTrace.Entity
Expand Down
7 changes: 4 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ A: Just subscribe to the workshop item:
Pressing DUCK ( Default: Ctrl ) + SPEED ( Default: Shift ) + ATTACK2 ( Default: Right mouse button )
Will decrement the next active point chosen of the piece that you're holding.
Pressing RELOAD ( Default: R )
When used on the world exports the database if the console variable "trackassembly_exportdb" is set to <>0,
When used on trace it removes it, if it's a track piece.
When Pressing it on world will clear the tool's selected prop to attach all the track pieces to ( anchor ).
Pressing RELOAD ( Default: R ) + SPEED ( Default: Shift )
Will set the trace prop as an anchor for other pieces spawned to be welded to.
When pressing it on world will clear the tool's selected prop to attach all the track pieces to ( anchor ).
When pressing it on the trace prop will set it as an anchor for other pieces spawned to be constrained to.
If you want to obtain different grip behaviour for a wheel-powered/sliding train,
you may use the surface material drop-down menus as you select first "TYPE" then "NAME".
In the text field you may type bodygroup/skin selection code or generate one using
Expand Down Expand Up @@ -270,7 +271,7 @@ Q: Yo, can I add some personal models to TA ?
A: Yes, you can. For every active point, you have to add a line in the table PIECES.
1) In the console ( Bring it up with ~ key under ESC ): "trackassembly_exportdb 1" [ press enter ]
2) After exporting, tables are located under ..common\GarrysMod\garrysmod\data\trackassembly\dsv\ [DSV Folder]
3) Server: Point the crosshair anywhere on the map, then hit SPEED ( Default: Shift ) + RELOAD ( Default: R )
3) Server: Point the crosshair anywhere on the map, then hit RELOAD ( Default: R )
4) Client: Just bring up the Frequently used pieces screen, then click the "Export client's DB" button
5) Use Excel or another table editing program to edit the files sv_*.txt and cl_*.txt
6) After you are done, proceed as below [Excel 2010]
Expand Down

0 comments on commit 7da1b92

Please sign in to comment.