Garry's Mod

Garry's Mod

Easy Animation Tool
miningmaster99 1. dec. 2017 kl. 22:48
Making it save.
Please add this feature, it shouldn't be that difficult either.


I'll even add an example on how to do it. it should really be this simple for you.
ENTITY-NAME - ANIMATION >> FILE.TXT
when open, get FILE.TXT
PARSE FILE.TXT INTO ENTITY $GRAB FILE.TXT :steamsad:
< >
Viser 1-11 af 11 kommentarer
76561198274242735 18. dec. 2017 kl. 3:44 
So... how can I save anim? Do you know?
miningmaster99 19. dec. 2017 kl. 18:42 
Yes using lua you could build a script that exports associated references to animations in a log file and load it later when a user clicks a code snippet also made in lua, e.g. a batch file which will run those associations.
76561198274242735 21. dec. 2017 kl. 4:17 
It is a pity that I do not know how to use lua scripts. Are there any better ways?
miningmaster99 23. dec. 2017 kl. 19:52 
Not without using direct source code that I can think of, but there are surely worse ways that don't involve lua... please don't use those ways.
miningmaster99 23. dec. 2017 kl. 20:07 
I made some small code snippets to help you out.
-- this is a comment it'll be ignored by the compiler

-- this snippet below will read from an external file
local f = io.open(filename,r)
print(f:read("*a"))


-- this snippet below will write to a lua log external file
local filehandle = io.open(filename[, mode])
local filehandle = io.open("Log.txt", "w+")
filehandle:write(ObjName, "Obj: ", tostring(ObjAnim), "\n") --might be somewhat wrong.
filehandle:close()

-- this will select all of your objects
os.execute("nav_select_radius 3000") -- may not work properly without editing first

-- Good luck!
miningmaster99 24. feb. 2018 kl. 22:14 
I'm sorry if I came off a little strong when I made this post I wasn't trying to sound like a ♥♥♥♥ it just kinda seemed that way, so really I'm sorry if that's how it felt but I truly would love to see this feature added.
miningmaster99 28. mar. 2018 kl. 21:09 
if you need to replace strings of text use gsub, if you want to delete specific chars use sub.
did any of this help you?
A.L.A.S.T-G.I.R 13. maj 2018 kl. 14:07 
is there a way to program animations to a button?
miningmaster99 28. maj 2018 kl. 19:22 
does that relate to making it save?
miningmaster99 27. dec. 2019 kl. 16:14 
its been like a year now and animations still can't be saved.
Omastar 22. maj 2020 kl. 3:18 
i seriously need to save these, or i can't make my new map X_X
< >
Viser 1-11 af 11 kommentarer
Per side: 1530 50