Well, that's embarrassing. I know I tried to record to another directory by using record "bla/temp.dem" and for some reason it didn't work. Now I realise it does work so I must have messed up with the syntax when I tested it before. So okay, one problem solved; one to go... and the renaming thing is actually the more important one.
2009/11/17 Spencer 'voogru' MacDonald <[email protected]> > Why not just record the demo to where it will end up anyway and skip the > whole moving part? > > With SourceTV you can change the demo path by simply doing like tv_record > "path/to/demo.dem", probably the same with the standard record command. > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of N K > Sent: Tuesday, November 17, 2009 2:06 PM > To: [email protected] > Subject: [hlcoders] Change default demo directory and move demos after > creation > > Hello everyone. I've got two rather special questions which I doubt have > been asked before. I'm guessing that's also why I haven't been able to find > anything about it on the internet so far. > > First of, I'm working with the OB version of the SDK. I've added a custom > trigger to triggers.cpp that is supposed to start and stop a demo when the > player touches it. That's where my first question comes up. I'm recording > the demo to a temporary file that I want to rename and move after it's > fully > recorded. For that purpose I'd like to save the temporary demo in another > folder than the root dir of my mod in /sourcemods (say in > /sourcemods/mymod/temp). Is that possible somehow or is it not in the hands > of modders? I have not been able to find anything about it in the source > code the SDK provides so I'm getting the feeling it's not. > > Secondly, once the demo is stopped, I want to rename it after a certain > scheme and then move it out of it's temporary folder (respectively the root > dir if I can't change that). The problem is that it takes a certain time > until the demo is stopped. Right now, touching the stopping trigger calls > the Touch( CBaseEntity *pOther ) method from where it issues the following > two commands: > > engine->ServerCommand( "stop\n" ); > pPlayer->MoveDemo( pPlayer ); > > I've implemented the MoveDemo method in basecombatcharacter.cpp cause I > need > to access player specific variables I added to the class. Now my question > is > simply how I could work around this problem, meaning how could I make sure > the MoveDemo function gets called when I can be sure that the demo isn't > used by the application anymore. > > In that context I just thought of another question that's of similar > nature. > I don't want to stop the demo at the exact moment the player touches the > trigger. I'd rather have a little time difference of say 6+ seconds so the > demo doesn't stop so abruptly. > > I'm really happy about any input from you guys cause I'm completely stuck > because of these problems right now. Thank you. > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

