|
Post by Stal on Sept 11, 2010 0:02:24 GMT
Whats the command for screenshot?
EDIT: another question, how do you set an alarm? Like set the alarm with a function, it waits 10 seconds and then preforms another function?
|
|
Mario
Suspended
[ss:Blue Groove (MF)]
Posts: 113
|
Post by Mario on Sept 11, 2010 12:53:28 GMT
The marble trail work , but it's more big (I forgot explain it more detailed) I need the trail look like a comet, in other words a flying stone with a big tail, it's possible with codes or I need do a particle emiter to it?
|
|
|
Post by Seizure22 (Witty Title) on Sept 11, 2010 16:52:43 GMT
@offline
try this:
add this function somewhere
function screenshot2() { $pref::screenshotnum++; screenshot("./screenshot_" @ $pref::screenshotnum @ ".jpg"); } and use this binding moveMap.bind(keyboard, "ctrl f8", "screenshot2");
#2 you want the schedule command
schedule(10000, 0, "functionname", parameter1, parameter2);
@ Mario
try googling for Torque Particle Tutorial
trailparticle.dump(); in console allows you to see stuff you can change
|
|
|
Post by Alexis on Sept 11, 2010 17:30:20 GMT
Also what's the code to change the .dts of your marble with the console?
|
|
|
Post by Otto on Sept 11, 2010 18:47:18 GMT
In MBP you can use $pref::customMarble = 0; $pref::marbleChoice = marbleNumber; for normal marbles and $pref::customMarble = 1; $pref::customMarbleChoice = customMarbleNumber; for custom marbles
|
|
|
Post by Alexis on Sept 11, 2010 19:04:05 GMT
Yes thanks! But i'm not on MBP.
|
|
|
Post by Otto on Sept 11, 2010 19:15:20 GMT
defaultmarble.shapeFile = "filepath" This will not be saved, however.
|
|
|
Post by Alexis on Sept 11, 2010 19:44:53 GMT
Thanks! But i tried this months ago, not working.
|
|
|
Post by Seizure22 (Witty Title) on Sept 11, 2010 20:54:08 GMT
if you don't get a syntax error with Otto's code (missing ;)
try this after doing so
localclientconnection.getcontrolobject().setdatablock(localclientconnection.getcontrolobject().getdatablock());
|
|
|
Post by Alexis on Sept 12, 2010 9:00:16 GMT
Same, not working.
|
|
|
Post by Seizure22 (Witty Title) on Sept 12, 2010 17:26:06 GMT
do this while game is playing
defaultmarble.shapefile = "marble/data/shapes/balls/ball1.dts";
then do the other code after it if that doesn't work
|
|
|
Post by Alexis on Sept 12, 2010 19:08:01 GMT
Well this code can be cool for a mega marble power-up but i'd like to know how to do a marble selection.
EDIT: An other question comes, now: how to make a new PowerUpID?
|
|
|
Post by Seizure22 (Witty Title) on Sept 12, 2010 20:01:09 GMT
you basically set up a GUI that changes a pref to whatever datablock you want to use, then in the "new Marble" area in game.cs, set the datablock based on the pref
powerupID functions are hardcoded and thus you'll need to redirect the pickup function when it's a custom powerup, and you'll need to basically create a powerup system in script
(this all really brief just to explain the general method)
|
|
Marblemaster1 (Frosty)
Professional Marbler
Master of the Spam Board, that is[ss:Default Skin]
I have CDO. It's just like OCD, except the letters are in alphabetical order AS THEY SHOULD BE.
Posts: 361
|
Post by Marblemaster1 (Frosty) on Nov 12, 2010 2:19:25 GMT
Bump, got a question.
Is it possible to make a trigger that doesn't do anything active, but it counts how many times you enter it. If there are several in a simgroup, it counts all of the ones in the simgroup, and then a second trigger that tells you how many times you have passed through the first trigger.
Thanks
|
|
|
Post by Oaky on Nov 12, 2010 5:00:11 GMT
Don't see the point in that, but I guess it's possible in theory (from a non-coder's perspective).
|
|
|
Post by Beack on Nov 13, 2010 13:16:46 GMT
it's possible make a Checkpoint trigger? with the DTS and the script needed?
|
|
|
Post by Beack on Nov 14, 2010 14:00:37 GMT
I done these additions to triggers cs. and pads.cs [based on a torque tutorial]
Shape done (DTS) and GUI done, but everytime I want create one the game crashes, I done someting wrong
I deleted the .dso
TRIGGER STATIC SHAPE(pads.cs) datablock StaticShapeData(CheckPoint) { className = "CheckPoint"; category = "Pads"; shapeFile = "~/data/shapes/pads/checkpoint.dts"; time = 0; gemCount = 0; penaltyTime = 0; bonusTime = 0; powerUp = 0; }; function CheckPoint::onAdd(%this, %obj) { updateCheckPoints(); }
--------------------------------------------------------------
TRIGGER DATABLOCK(trigger.cs) datablock TriggerData(CheckPointTrigger) { tickPeriodMS = 100; };
function CheckPointTrigger::onEnterTrigger(%this,%trigger,%obj) { setMarbleCheckPoint(%trigger.checkPoint); }
I need change someting?
|
|
|
Post by Hi Guy on Nov 14, 2010 17:10:59 GMT
Before I can answer that, can you post the setMarbleCheckPoint() function, and the updateCheckPoints() function?
|
|
|
Post by Beack on Nov 14, 2010 19:19:58 GMT
woot I don't done that :/
|
|
Marblemaster1 (Frosty)
Professional Marbler
Master of the Spam Board, that is[ss:Default Skin]
I have CDO. It's just like OCD, except the letters are in alphabetical order AS THEY SHOULD BE.
Posts: 361
|
Post by Marblemaster1 (Frosty) on Dec 4, 2010 16:31:50 GMT
Got another question... I'm building a mod, and I'm trying to get it to have 2 types of gems and you have to collect all of both types to beat the level. I've tried coding it before, but when I try to run MBG, my antivirus program freaks out and forces me to delete it. Can someone help me please? DTS: www.mediafire.com/?zjezqfuelg5hldg
|
|
|
Post by [DWARF] RDs.empire on Dec 4, 2010 21:03:33 GMT
What anitvirus program do you have?
|
|
|
Post by phil on Dec 5, 2010 0:16:28 GMT
see whether you can 'disable' those files from being checked by the antivirus, somehow
|
|
Marblemaster1 (Frosty)
Professional Marbler
Master of the Spam Board, that is[ss:Default Skin]
I have CDO. It's just like OCD, except the letters are in alphabetical order AS THEY SHOULD BE.
Posts: 361
|
Post by Marblemaster1 (Frosty) on Dec 5, 2010 1:27:43 GMT
AVG free. And I did allow them, but the codes didn't work. Basically, I copied the codes for the gems but replacing the gem DTS with one of the ones I made and making a new variable for the 2nd gem counter.
|
|
|
Post by Perishingflames on Dec 5, 2010 3:27:28 GMT
Well now would be as good a time as any to switch. Avast free and avira are much better alternatives.
|
|
|
Post by Aayrl on Dec 6, 2010 2:38:57 GMT
Microsoft Security Essentials is decent (and freeware), for the cheap, cold-hearted windows users whom do not like to pay for software. ~Aayrl
|
|
|
Post by [DWARF] RDs.empire on Dec 6, 2010 6:33:34 GMT
AVG free. And I did allow them, but the codes didn't work. Basically, I copied the codes for the gems but replacing the gem DTS with one of the ones I made and making a new variable for the 2nd gem counter. Thats weird i have avg free too but i never got that kinda eror
|
|
Marblemaster1 (Frosty)
Professional Marbler
Master of the Spam Board, that is[ss:Default Skin]
I have CDO. It's just like OCD, except the letters are in alphabetical order AS THEY SHOULD BE.
Posts: 361
|
Post by Marblemaster1 (Frosty) on Dec 7, 2010 1:11:35 GMT
Hmm... That's weird. It might just be that I suck at coding ( ) and AVG somehow saw the glitchy CS files as a threat. EDIT: W00t! 200th post!
|
|
|
Post by picklecow10 on Dec 24, 2010 21:31:08 GMT
Bump, Merry Christmas Eve Everybody Simple question: How do I round a number, coding-wise?
|
|
|
Post by IsraeliRD on Dec 24, 2010 21:50:14 GMT
mFloor and mCeil (floor lower, ceil higher)
|
|
|
Post by picklecow10 on Dec 25, 2010 6:46:11 GMT
Thanks RD, works perfectly
|
|