file Basic Marble Blast Coding Q&A

More
11 Sep 2010 02:02 #61 by Stal
Replied by Stal on topic Basic Marble Blast Coding Q&A
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.

More
11 Sep 2010 14:53 #62 by Mario
Replied by Mario on topic Basic Marble Blast Coding Q&A
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
More
11 Sep 2010 18:52 #63 by Seizure22
Replied by Seizure22 on topic Basic Marble Blast Coding Q&A
@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.

More
11 Sep 2010 19:30 #64 by Alexis
Replied by Alexis on topic Basic Marble Blast Coding Q&A
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.

More
11 Sep 2010 20:47 #65 by Otto
Replied by Otto on topic Basic Marble Blast Coding Q&A
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.

More
11 Sep 2010 21:04 #66 by Alexis
Replied by Alexis on topic Basic Marble Blast Coding Q&A
Yes thanks! But i'm not on MBP.

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

More
11 Sep 2010 21:15 #67 by Otto
Replied by Otto on topic Basic Marble Blast Coding Q&A
defaultmarble.shapeFile = filepath
This will not be saved, however.

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

More
11 Sep 2010 21:44 #68 by Alexis
Replied by Alexis on topic Basic Marble Blast Coding Q&A
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
More
11 Sep 2010 22:54 #69 by Seizure22
Replied by Seizure22 on topic Basic Marble Blast Coding Q&A
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.

More
12 Sep 2010 11:00 #70 by Alexis
Replied by Alexis on topic Basic Marble Blast Coding Q&A
Same, not working.

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

  • Seizure22
  • Seizure22's Avatar
  • Offline
  • Intermediate Marbler
  • Intermediate Marbler
More
12 Sep 2010 19:26 #71 by Seizure22
Replied by Seizure22 on topic Basic Marble Blast Coding Q&A
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.

More
12 Sep 2010 21:08 #72 by Alexis
Replied by Alexis on topic Basic Marble Blast Coding Q&A
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
More
12 Sep 2010 22:01 #73 by Seizure22
Replied by Seizure22 on topic Basic Marble Blast Coding Q&A
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
  • QuArK proudly!
More
12 Nov 2010 05:19 #74 by Marblemaster1
Replied by Marblemaster1 on topic Basic Marble Blast Coding Q&A
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

while (!PQ.getIsReleased())
{
      System.out.println("PQ WHERe");
}
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.

More
12 Nov 2010 08:00 #75 by Oaky
Replied by Oaky on topic Basic Marble Blast Coding Q&A
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
More
13 Nov 2010 16:16 #76 by Beack
Replied by Beack on topic Basic Marble Blast Coding Q&A
it's possible make a Checkpoint trigger?
with the DTS and the script needed?

The weirdest signature that I ever requested
[/size]

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

  • Beack
  • Beack's Avatar
  • Offline
  • Professional Marbler
  • Professional Marbler
  • Beack ewe
More
14 Nov 2010 17:00 #77 by Beack
Replied by Beack on topic Basic Marble Blast Coding Q&A
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
[/size]

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

  • HiGuy
  • HiGuy's Avatar
  • Offline
  • Administrator
  • Administrator
  • At college, may not be around
More
14 Nov 2010 20:10 #78 by HiGuy
Replied by HiGuy on topic Basic Marble Blast Coding Q&A
Before I can answer that, can you post the setMarbleCheckPoint() function, and the updateCheckPoints() function?

PQ in a nutshell
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
More
14 Nov 2010 22:19 #79 by Beack
Replied by Beack on topic Basic Marble Blast Coding Q&A
woot I don't done that :/

The weirdest signature that I ever requested
[/size]

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

  • Marblemaster1
  • Marblemaster1's Avatar
  • Offline
  • Advanced Marbler
  • Advanced Marbler
  • QuArK proudly!
More
04 Dec 2010 19:31 #80 by Marblemaster1
Replied by Marblemaster1 on topic Basic Marble Blast Coding Q&A
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

while (!PQ.getIsReleased())
{
      System.out.println("PQ WHERe");
}
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
More
05 Dec 2010 00:03 #81 by RDs.The-dts-guy
Replied by RDs.The-dts-guy on topic Basic Marble Blast Coding Q&A
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.

More
05 Dec 2010 03:16 #82 by Phil
Replied by Phil on topic Basic Marble Blast Coding Q&A
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
  • QuArK proudly!
More
05 Dec 2010 04:27 #83 by Marblemaster1
Replied by Marblemaster1 on topic Basic Marble Blast Coding Q&A
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.

while (!PQ.getIsReleased())
{
      System.out.println("PQ WHERe");
}
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
More
05 Dec 2010 06:27 #84 by Perishingflames
Replied by Perishingflames on topic Basic Marble Blast Coding Q&A
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!
More
06 Dec 2010 05:38 #85 by Aayrl
Replied by Aayrl on topic Basic Marble Blast Coding Q&A
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
More
06 Dec 2010 09:33 #86 by RDs.The-dts-guy
Replied by RDs.The-dts-guy on topic Basic Marble Blast Coding Q&A
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
  • QuArK proudly!
More
07 Dec 2010 04:11 #87 by Marblemaster1
Replied by Marblemaster1 on topic Basic Marble Blast Coding Q&A
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!

while (!PQ.getIsReleased())
{
      System.out.println("PQ WHERe");
}
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.

More
25 Dec 2010 00:31 #88 by picklecow10
Replied by picklecow10 on topic Basic Marble Blast Coding Q&A
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
More
25 Dec 2010 00:50 #89 by IsraeliRD
Replied by IsraeliRD on topic Basic Marble Blast Coding Q&A
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.

More
25 Dec 2010 09:46 #90 by picklecow10
Replied by picklecow10 on topic Basic Marble Blast Coding Q&A
Thanks RD, works perfectly

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

Moderators: AayrlKalle29Regislian