file Basic Marble Blast Coding Q&A

  • Posts: 227
  • Thank you received: 0
11 Sep 2010 02:02 #61
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?

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 0
11 Sep 2010 14:53 #62
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?

Please Log in or Create an account to join the conversation.

  • Seizure22
  • Seizure22's Avatar
  • Offline
  • Intermediate Marbler
  • Intermediate Marbler
  • Posts: 79
  • Thank you received: 0
11 Sep 2010 18:52 #63
@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

Please Log in or Create an account to join the conversation.

  • Posts: 240
  • Thank you received: 0
11 Sep 2010 19:30 #64
Also what's the code to change the .dts of your marble with the console?

Please Log in or Create an account to join the conversation.

  • Posts: 44
  • Thank you received: 0
11 Sep 2010 20:47 #65
In MBP you can use
$pref::customMarble = 0; $pref::marbleChoice = marbleNumber;
for normal marbles and
$pref::customMarble = 1; $pref::customMarbleChoice = customMarbleNumber;
for custom marbles

Please Log in or Create an account to join the conversation.

  • Posts: 240
  • Thank you received: 0
11 Sep 2010 21:04 #66
Yes thanks! But i'm not on MBP.

Please Log in or Create an account to join the conversation.

  • Posts: 44
  • Thank you received: 0
11 Sep 2010 21:15 #67
defaultmarble.shapeFile = filepath
This will not be saved, however.

Please Log in or Create an account to join the conversation.

  • Posts: 240
  • Thank you received: 0
11 Sep 2010 21:44 #68
Thanks! But i tried this months ago, not working.

Please Log in or Create an account to join the conversation.

  • Seizure22
  • Seizure22's Avatar
  • Offline
  • Intermediate Marbler
  • Intermediate Marbler
  • Posts: 79
  • Thank you received: 0
11 Sep 2010 22:54 #69
if you don't get a syntax error with Otto's code (missing

try this after doing so

localclientconnection.getcontrolobject().setdatablock(localclientconnection.getcontrolobject().getdatablock());#nosmi leys

Please Log in or Create an account to join the conversation.

  • Posts: 240
  • Thank you received: 0
12 Sep 2010 11:00 #70
Same, not working.

Please Log in or Create an account to join the conversation.

  • Seizure22
  • Seizure22's Avatar
  • Offline
  • Intermediate Marbler
  • Intermediate Marbler
  • Posts: 79
  • Thank you received: 0
12 Sep 2010 19:26 #71
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

Please Log in or Create an account to join the conversation.

  • Posts: 240
  • Thank you received: 0
12 Sep 2010 21:08 #72
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?

Please Log in or Create an account to join the conversation.

  • Seizure22
  • Seizure22's Avatar
  • Offline
  • Intermediate Marbler
  • Intermediate Marbler
  • Posts: 79
  • Thank you received: 0
12 Sep 2010 22:01 #73
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)

Please Log in or Create an account to join the conversation.

  • Marblemaster1
  • Marblemaster1's Avatar
  • Offline
  • Advanced Marbler
  • Advanced Marbler
  • Custom Code Enthusiast
  • Posts: 237
  • Thank you received: 8
12 Nov 2010 05:19 #74
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

QuArK is still a good map editor

You know what's boring? Opaque marble skins. You know what's not? Glass Marbles!

Please Log in or Create an account to join the conversation.

  • Posts: 623
  • Thank you received: 0
12 Nov 2010 08:00 #75
Don't see the point in that, but I guess it's possible in theory (from a non-coder's perspective).

Please Log in or Create an account to join the conversation.

  • Beack
  • Beack's Avatar
  • Offline
  • Professional Marbler
  • Professional Marbler
  • Beack ewe
  • Posts: 477
  • Thank you received: 0
13 Nov 2010 16:16 #76
it's possible make a Checkpoint trigger?
with the DTS and the script needed?

The weirdest signature that I ever requested

Please Log in or Create an account to join the conversation.

  • Beack
  • Beack's Avatar
  • Offline
  • Professional Marbler
  • Professional Marbler
  • Beack ewe
  • Posts: 477
  • Thank you received: 0
14 Nov 2010 17:00 #77
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?

The weirdest signature that I ever requested

Please Log in or Create an account to join the conversation.

  • HiGuy
  • HiGuy's Avatar
  • Offline
  • Lead Developer
  • Lead Developer
  • PQ Developer Emeritus
  • Posts: 1333
  • Thank you received: 604
14 Nov 2010 20:10 #78
Before I can answer that, can you post the setMarbleCheckPoint() function, and the updateCheckPoints() function?

This signature is real code
Code:
function clientcmd12dothepq() { commandToClient(LocalClientConnection, '34onthedancefloor'); }

Please Log in or Create an account to join the conversation.

  • Beack
  • Beack's Avatar
  • Offline
  • Professional Marbler
  • Professional Marbler
  • Beack ewe
  • Posts: 477
  • Thank you received: 0
14 Nov 2010 22:19 #79
woot I don't done that :/

The weirdest signature that I ever requested

Please Log in or Create an account to join the conversation.

  • Marblemaster1
  • Marblemaster1's Avatar
  • Offline
  • Advanced Marbler
  • Advanced Marbler
  • Custom Code Enthusiast
  • Posts: 237
  • Thank you received: 8
04 Dec 2010 19:31 #80
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

QuArK is still a good map editor

You know what's boring? Opaque marble skins. You know what's not? Glass Marbles!

Please Log in or Create an account to join the conversation.

  • RDs.The-dts-guy
  • RDs.The-dts-guy's Avatar
  • Offline
  • Developer
  • Developer
  • Blender pls
  • Posts: 719
  • Thank you received: 188
05 Dec 2010 00:03 #81
What anitvirus program do you have?

Some guy that does DTS shapes and levels.

AWESOME time HINT : When making PQ level place your custom interiors and textures in platinum/data/interiors_pq/custom
makes life easier for you and everyone else :)

Please Log in or Create an account to join the conversation.

  • Posts: 484
  • Thank you received: 1
05 Dec 2010 03:16 #82
see whether you can 'disable' those files from being checked by the antivirus, somehow

Please Log in or Create an account to join the conversation.

  • Marblemaster1
  • Marblemaster1's Avatar
  • Offline
  • Advanced Marbler
  • Advanced Marbler
  • Custom Code Enthusiast
  • Posts: 237
  • Thank you received: 8
05 Dec 2010 04:27 #83
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.

QuArK is still a good map editor

You know what's boring? Opaque marble skins. You know what's not? Glass Marbles!

Please Log in or Create an account to join the conversation.

  • Perishingflames
  • Perishingflames's Avatar
  • Offline
  • Senior Marbler
  • Senior Marbler
  • Posts: 882
  • Thank you received: 21
05 Dec 2010 06:27 #84
Well now would be as good a time as any to switch. Avast free and avira are much better alternatives.

Please Log in or Create an account to join the conversation.

  • Aayrl
  • Aayrl's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Big Deal!
  • Posts: 1118
  • Thank you received: 368
06 Dec 2010 05:38 #85
Microsoft Security Essentials is decent (and freeware), for the cheap, cold-hearted windows users whom do not like to pay for software.

~Aayrl

Please Log in or Create an account to join the conversation.

  • RDs.The-dts-guy
  • RDs.The-dts-guy's Avatar
  • Offline
  • Developer
  • Developer
  • Blender pls
  • Posts: 719
  • Thank you received: 188
06 Dec 2010 09:33 #86
Dec 4, 2010, 8:27pm, marblemaster1 wrote: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

Some guy that does DTS shapes and levels.

AWESOME time HINT : When making PQ level place your custom interiors and textures in platinum/data/interiors_pq/custom
makes life easier for you and everyone else :)

Please Log in or Create an account to join the conversation.

  • Marblemaster1
  • Marblemaster1's Avatar
  • Offline
  • Advanced Marbler
  • Advanced Marbler
  • Custom Code Enthusiast
  • Posts: 237
  • Thank you received: 8
07 Dec 2010 04:11 #87
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!

QuArK is still a good map editor

You know what's boring? Opaque marble skins. You know what's not? Glass Marbles!

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
25 Dec 2010 00:31 #88
Bump, Merry Christmas Eve Everybody

Simple question: How do I round a number, coding-wise?

Please Log in or Create an account to join the conversation.

  • IsraeliRD
  • IsraeliRD's Avatar
  • Offline
  • Project Manager
  • Project Manager
  • Dragon Power Supreme
  • Posts: 3502
  • Thank you received: 912
25 Dec 2010 00:50 #89
mFloor and mCeil (floor lower, ceil higher)

"matan, now i get what you meant a few years back when you said that "the level in mbg is beyond me" after the last rampage i noticed things were insane, and now i truly feel that too" - Dushine, 2015.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
25 Dec 2010 09:46 #90
Thanks RD, works perfectly

Please Log in or Create an account to join the conversation.

Moderators: Doomblah
Time to create page: 1.029 seconds
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.