Sandbox+ for SRTT

oh. ok. i wasn't trying to rush you. i actually thought maybe i posted in the wrong place and you were just being nice about it.
the reason i said maybe its not possible is only because i've yet to figure it out. i've been trying.

i didnt think u were going to reply but i thought it was because i posted in the wrong place not because u hadn't had a chance to look at it yet.
well thanks and stuff.
 
oh. ok. i wasn't trying to rush you. i actually thought maybe i posted in the wrong place and you were just being nice about it.
the reason i said maybe its not possible is only because i've yet to figure it out. i've been trying.

i didnt think u were going to reply but i thought it was because i posted in the wrong place not because u hadn't had a chance to look at it yet.
well thanks and stuff.

I took an initial look at it and did some poking around, but couldn't find the animation functions in the missions I was looking for. The problem is that I recently did a fresh os install, and I still need to setup an index for the sr3 files/folder so I can do an indexed search of all the game files. I've just been putting it off since it takes forever to setup. Not to mention working on the gui version of GoS and trying to play some Civ5 to relax during downtime.

Anyway, I'll let you know what I find once I get that all sorted.
 
ok. sounds good. yeah i had trouble finding anything myself until i used something linked from one of your links i think. it was with gibbed tools but it was called recursive unpacker. im sure you're more familiar with all that stuff than me. but i know it made it easier since it made a huge dump of everything.

i really like your stuff by the way. and i never played civ5 but i played civ4 and i liked the turn based nature more than i thought i would. i was used to CNC style games for my RTS-ish fix. the taking turns gave me time to think. maybe i'll check out civ 5 on steam. :)

thanks again!!
 
Hi. i think i might've found something that can help answer my question. you actually gave me the idea when you said about all your files. and then i thought about how i dumped mine. so i did a text search on multiple files, all the lua files in the dump. i searched for the function i was using for starting the animation. i searched all lua's for "action_play_do."

im not sure if "blocking" means blocks any other input until animation is completed, or what. but theres options to do it with blocking and without blocking. this is from game_lib.lua in misc.
even with this right in front of me its still not enough for me to figure it out. i think that's just my limited knowledge. this could be the answer right here. i think you might see this and it will speak right to you.

should save loads of time trying to find anything. its likely enough for the example. the example is what i can really interpret.

Code:
-- Make a human play an animation without blocking.
--
-- name:                (string) name of character
-- anim_name:        (string) name of animation to play (valid action names can be found in anim_actions.xtbl, in data/tables)
-- morph_name:        (string, optional) name of morph to use (defaults to the animation name)
-- force_play:        (boolean, optional) if true, forces the animation to play on the character, even if dead (defaults to false)
-- stand_still:    (boolean, optional) if true, the character is reset to a standing state before the animation is played (defaults to false)
-- zero_movement:    (boolean, optional) if ture, the charaters movement speed it set to zero (defaults to false)   
-- navpoint:        (string, optional) slide into navpoint if provided
-- dest_nav:        (string, optional) slide into destination navpoint if provided
--
-- NB: This function will still block until the animation actually starts playing.
--
function action_play_non_blocking(name, anim_name, morph_name, force_play, stand_still, zero_movement, navpoint, dest_nav)
    while not action_play_do(name, anim_name, morph_name, force_play, stand_still, zero_movement, navpoint, dest_nav) do
        thread_yield()
    end
end


now here is a similar one with blocking.

Code:
-- Make a human play a custom animation, blocking until the animation is done.
--
-- name:                (string) name of character
-- anim_name:        (string) name of animation to play (valid action names can be found in anim_actions.xtbl, in data/tables)
-- percentage:        (float, optional) percentage done to check for (defaults to 0.8)
--
-- If possible, the <a>action_play</a> script action should be used instead where possible.
--
function action_play_custom(name, anim_name, percentage)
    while not action_play_custom_do(name, anim_name) do
        thread_yield()
    end
 
    repeat
        thread_yield()
    until action_play_is_finished(name, percentage)
end


If this was unhelpful, I'm sorry for wasting your time. it looked relevant. lol. o_O
 
Those code snippets are both functions in the core lua files. They are normally called by other lua, so you would want to check through all the mission lua for examples of code that call them. Those can be found in:
sr3_city_0.vpp_pc\m01_modal.str2_pc\m01.lua
(simply replace m01 with mo2, and up through m24 for the final one)

You'll probably see an example in a mission that creates a thread for that function something like:
Code:
local new_anim_thread
new_anim_thread = action_play_custom(dance, dance_anim,)
Note: I just made up those arguments. You'll probably have to figure out the actual names to use. Also, you'll probably have to define the new_anim_thread variable somewhere at the top with all the other stuff that's been added and not in the function itself. The reason you want the variable declared outside of the function (i.e. at the top) is so you can monitor it every cycle of the main thread and do something else after it finishes.
 
This is a brilliant mod! I'm using it mostly because it includes the superpowers. I have a question about that, though. Is there a way so you can get the aura around you when you run? I don't see an aura around me unless I do the jump-roll, it looks as if a blue aura is there, but when you're running you don't see it. Anyway, great mod! Can we be friends on steam? I tried to add you before.
 
ok. that makes sense what u said. its what i thought i had to. About adding it at the top so it could monitor every cycle. I know thats what i need to do and i know why i need to do it.
But i dont know the wording. Thats why i knew an example would help me indefinitely. You've given me confidence that i was on the right track. And i have no problem navigating the mission files. I think we're almost there. the code u posted, thats what would be at top, yes? i understand it was just a misc example. when i look at other threads defined at the top, i see things like "invalid thread handle," and other pieces with numbers that i simply don't understand the wording for. The logic to everything you said is clear actually. i like the way you speak clearly hehe.

so would i need to type anything at the top other than the equivalent to what you posted? if there's another thread in sandbox for something similar, i could reference that. i would just change the actual commands for the animations i imagine. are there any threads that would be suitable?

i think the part i actually dont know now is just the exact wording. a smiliar example like the one you made, even with made up names etc, could be everything i need.
i appreciate you taking the time to help. You're the author of both the game's most distinguished mods i see.:)
 
This is a brilliant mod! I'm using it mostly because it includes the superpowers. I have a question about that, though. Is there a way so you can get the aura around you when you run? I don't see an aura around me unless I do the jump-roll, it looks as if a blue aura is there, but when you're running you don't see it. Anyway, great mod! Can we be friends on steam? I tried to add you before.

One of the big problems with the superpowers is that the effects are only loaded with the DLC mission itself and not in the open world. In fact, accessing DLC assets outside of the missions is something that none of us have been able to do successfully. The decker specialist fx you see are a substitution by necessity, as nothing else will actually work (so far.) You should be able to see them activating behind you just fine while you're running though. At least they look fine to me.

If you had read my Steam profile you would have seen the big warning that I do not accept blind friend invites. I'm not trying to be a jerk, but I get up to 10 of them per day from random people who have historically wanted me to:
A. Help them with something
B. Make a million requests for features that aren't possible or are weird/perverted
C. Spout creepy hero worship telling me I'm a god of modding and other such nonsense
D. Spout hate filled diatribes on what an asshole I am for any number of reasons (usually my hardline stance against piracy)
E. Try to communicate with me in a foreign language that I don't understand
F. Want to join the Gentlemen of the Row group, not understanding or accepting that it's a private group for Penny Arcade
G. Tell me to "MAK MOD WERK ON XBOX"
H. Try to convince me to make mods work with pirated versions
I. Send me creepy half-naked pics of themselves. I'm seriously not making this up.

First of all, I simply don't have time to deal with any of that. Secondly, my friends list is currently almost maxed out with the actual people I know and play with online from penny arcade and something awful.

So, that's the reason why I ignored your invite. I'm not saying you fall into any of those categories, and I am always happy to help anyone posting here on this forum with their questions or problems. There is also the Gentlemen of Steelport Steam group chat which I idle in 24/7 along with Minimaul, Corrodias, Evangel, and a few other modders off and on. If you do join chat, make sure to actually type something; even simply "hello". Most of the time we're inactive and only see the taskbar chat flash when someone types something. i.e. a join or disconnect doesn't visually update.
 
haha. i dont have anything to add at the moment except that the "historical list" in the post above was pretty funny. lol.:D
 
One of the big problems with the superpowers is that the effects are only loaded with the DLC mission itself and not in the open world. In fact, accessing DLC assets outside of the missions is something that none of us have been able to do successfully. The decker specialist fx you see are a substitution by necessity, as nothing else will actually work (so far.) You should be able to see them activating behind you just fine while you're running though. At least they look fine to me.

If you had read my Steam profile you would have seen the big warning that I do not accept blind friend invites. I'm not trying to be a jerk, but I get up to 10 of them per day from random people who have historically wanted me to:
A. Help them with something
B. Make a million requests for features that aren't possible or are weird/perverted
C. Spout creepy hero worship telling me I'm a god of modding and other such nonsense
D. Spout hate filled diatribes on what an asshole I am for any number of reasons (usually my hardline stance against piracy)
E. Try to communicate with me in a foreign language that I don't understand
F. Want to join the Gentlemen of the Row group, not understanding or accepting that it's a private group for Penny Arcade
G. Tell me to "MAK MOD WERK ON XBOX"
H. Try to convince me to make mods work with pirated versions
I. Send me creepy half-naked pics of themselves. I'm seriously not making this up.

First of all, I simply don't have time to deal with any of that. Secondly, my friends list is currently almost maxed out with the actual people I know and play with online from penny arcade and something awful.

So, that's the reason why I ignored your invite. I'm not saying you fall into any of those categories, and I am always happy to help anyone posting here on this forum with their questions or problems. There is also the Gentlemen of Steelport Steam group chat which I idle in 24/7 along with Minimaul, Corrodias, Evangel, and a few other modders off and on. If you do join chat, make sure to actually type something; even simply "hello". Most of the time we're inactive and only see the taskbar chat flash when someone types something. i.e. a join or disconnect doesn't visually update.
Well, you seem like a cool guy to me, and I respect people like you, because I've seen people who are like ''lulz i can mek mods so yoo are all worfless and cant do shet'' and that's pretty damn horrible. You also cracked me up at that list you gave me, especially the last one. People really do that? Holy shit. Anyway, once again, this is a great mod and you deserve every inch of respect possible! :D
 
Back
Top