file Basic Marble Blast Coding Q&A

More
26 Dec 2010 09:27 #91 by picklecow10
Replied by picklecow10 on topic Basic Marble Blast Coding Q&A
Another question (sorry for the double post)

Is there a way to run a function every time the marble jumps?
I was using a command in default.bind.cs, but unfortunately it only works when you first press the spacebar (if you hold it down and jump a bunch of times, it only runs the function once)

Any help?
Oh yea, and Merry Christmas everybody

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

More
26 Dec 2010 14:06 #92 by Phil
Replied by Phil on topic Basic Marble Blast Coding Q&A
Nah, unfortunately there isn't. I had the same problem

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

More
27 Dec 2010 13:50 #93 by narvoxx
Replied by narvoxx on topic Basic Marble Blast Coding Q&A
You can make it so that the marble only *tries* (because it won't succeed when mid air) to jump when you hit or release the jump key. There's probably also a way to make it so that ti's only when you hit. Oh and this screws the hold spacebar to spam jump thing. So if this is what you need I can try, if you need to retain the holdspacebar to jump I won't bother.

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

More
27 Dec 2010 19:32 #94 by Alexis
Replied by Alexis on topic Basic Marble Blast Coding Q&A
I have a question, i want to add a number to the gem count to be able to collect more than 100 gems without having a bug, but i didn't found that code. Any help?

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

  • HiGuy
  • HiGuy's Avatar
  • Offline
  • Administrator
  • Administrator
  • Rewrite it in Rust
More
09 Jan 2011 21:47 #95 by HiGuy
Replied by HiGuy on topic Basic Marble Blast Coding Q&A
Hey all, another question from me. This one's been boggling me for a while.

How do I use a HTTPObject or a TCPObject to issue a POST command to a PHP file I have on my webserver?

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
17 Jan 2011 18:14 #96 by Beack
Replied by Beack on topic Basic Marble Blast Coding Q&A
How you change the font of the messages, help triggers, start help text, when you pickup a gem/power up, etc?

Another small question, How can I do skies with movement?

The weirdest signature that I ever requested
[/size]

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
18 Jan 2011 09:33 #97 by RDs.The-dts-guy
Replied by RDs.The-dts-guy on topic Basic Marble Blast Coding Q&A
Jan 17, 2011, 10:14am, satanic wrote:Another small question, How can I do skies with movement?
gif skyboxes are imposible. That was tested before. And even if that would work it will totaly lag game.
Its impossible

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.

  • IsraeliRD
  • IsraeliRD's Avatar
  • Offline
  • Project Manager
  • Project Manager
  • Dragon Power Supreme
More
18 Jan 2011 10:55 #98 by IsraeliRD
Replied by IsraeliRD on topic Basic Marble Blast Coding Q&A
who said you need gif when you can easily add normal jpgs and make them move? thats been done in the past... I suspect 2007 was the first time they surfaced and ever since been done a lot. Including in MBA.

"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.

  • RDs.The-dts-guy
  • RDs.The-dts-guy's Avatar
  • Offline
  • Developer
  • Developer
  • Blender pls
More
18 Jan 2011 16:19 #99 by RDs.The-dts-guy
Replied by RDs.The-dts-guy on topic Basic Marble Blast Coding Q&A
Jpgs are imposible to make move. If do then how ? I still dont belive it

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.

  • IsraeliRD
  • IsraeliRD's Avatar
  • Offline
  • Project Manager
  • Project Manager
  • Dragon Power Supreme
More
18 Jan 2011 17:01 #100 by IsraeliRD
Replied by IsraeliRD on topic Basic Marble Blast Coding Q&A
Check MBA. I think it has moving clouds. Besides, that's been posted in the MBDK I think... or in other mods. Doing moving clouds is known.

"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
18 Jan 2011 18:05 #101 by Pablo
Replied by Pablo on topic Basic Marble Blast Coding Q&A
The skies themselves don't need to move; you can make clouds in Milkshape and have them orbit. See MMS's threads.

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

  • Beack
  • Beack's Avatar
  • Offline
  • Professional Marbler
  • Professional Marbler
  • Beack ewe
More
18 Jan 2011 19:28 #102 by Beack
Replied by Beack on topic Basic Marble Blast Coding Q&A
Something like this:
Cloud test???

and for the font of the messages I saw this:
I don't have a name for this link ):

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
  • Rewrite it in Rust
More
29 Jan 2011 07:40 #103 by HiGuy
Replied by HiGuy on topic Basic Marble Blast Coding Q&A
BUMP: anyone (Spy? Seizure?) have knowledge of my question?

PQ in a nutshell
function clientcmd12dothepq() {
    commandToClient(LocalClientConnection, '34onthedancefloor');
}

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

  • Perishingflames
  • Perishingflames's Avatar
  • Offline
  • Senior Marbler
  • Senior Marbler
More
29 Jan 2011 20:55 #104 by Perishingflames
Replied by Perishingflames on topic Basic Marble Blast Coding Q&A
Uh... that's definitely a question for seizure. It's specific to MB. Try pm'ing seizure, higuy.

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

  • Beack
  • Beack's Avatar
  • Offline
  • Professional Marbler
  • Professional Marbler
  • Beack ewe
More
29 Jan 2011 23:00 #105 by Beack
Replied by Beack on topic Basic Marble Blast Coding Q&A
Jan 18, 2011, 11:28am, satanic wrote:Something like this:
Cloud test???

and for the font of the messages I saw this:
I don't have a name for this link ):

Any answer to this????

The weirdest signature that I ever requested
[/size]

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

  • IsraeliRD
  • IsraeliRD's Avatar
  • Offline
  • Project Manager
  • Project Manager
  • Dragon Power Supreme
More
30 Jan 2011 03:03 #106 by IsraeliRD
Replied by IsraeliRD on topic Basic Marble Blast Coding Q&A
Seizure doesn't know anything about networking, good going PF.

"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
30 Jan 2011 05:41 #107 by Phil
Replied by Phil on topic Basic Marble Blast Coding Q&A
Jan 9, 2011, 1:47pm, higuy wrote:Hey all, another question from me. This one's been boggling me for a while.

How do I use a HTTPObject or a TCPObject to issue a POST command to a PHP file I have on my webserver?

Firstly be aware that the networking code in the engine seemed to be almost completely stripped from the Mac version of the Torque engine (who knows why), so you'll need to work with the Windows version since it seems to be much more reliable.

Also as far as I know, the HTTPObject's send() method has been broken for a while, so it basically makes this class unusable.

You'll have to use a TCPObject and send your HTTP request that way.
There's a good tutorial which has a nice explanation on how to set one up here:
realmwars.feylab.com/tutorial/Tutorial1.htm

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

  • Perishingflames
  • Perishingflames's Avatar
  • Offline
  • Senior Marbler
  • Senior Marbler
More
30 Jan 2011 06:23 #108 by Perishingflames
Replied by Perishingflames on topic Basic Marble Blast Coding Q&A
I meant Phil

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

  • Jeff
  • Jeff's Avatar
  • Offline
  • Developer
  • Developer
  • PlatinumQuest Programmer
More
30 Jan 2011 06:34 #109 by Jeff
Replied by Jeff on topic Basic Marble Blast Coding Q&A
Is there a way to make a trigger have a solid box, such as colmesh without the .dts shape?

I am a programmer. Most here know me for being one of the major contributors to Marble Blast Platinum and PlatinumQuest.

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

  • Perishingflames
  • Perishingflames's Avatar
  • Offline
  • Senior Marbler
  • Senior Marbler
More
30 Jan 2011 06:45 #110 by Perishingflames
Replied by Perishingflames on topic Basic Marble Blast Coding Q&A
I don't think so... why not just surround a colmesh with a trigger?

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

  • IsraeliRD
  • IsraeliRD's Avatar
  • Offline
  • Project Manager
  • Project Manager
  • Dragon Power Supreme
More
30 Jan 2011 06:45 #111 by IsraeliRD
Replied by IsraeliRD on topic Basic Marble Blast Coding Q&A
That's better PF.

Jeff: not afaik. I'd go with colmesh.dts and dress up on it a trigger.

"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
31 Jan 2011 02:03 #112 by Stal
Replied by Stal on topic Basic Marble Blast Coding Q&A
@The beginning of this page:
When the marble successfully jumps, it must complete a function, or at least a few lines (jump() for example). Why not add some code to jump() to call your own function to do what you want?

@Previous:
Putting a colmesh and a trigger of the exact same size and at the same position should work, I've experienced this once as a bug using OOB triggers.

@ Networking question:
Is that for trying to do multiplayer?

My question:
Can we set up a trigger that will activate landmines (by calling their item ID), tornados, fans magnets? I'd love to set up a seemingly safe pasege, but when you start going through - BOOM BOOM WHOOOSH WAAAOOOWW BOOM BOOM WHOOOSH

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

  • IsraeliRD
  • IsraeliRD's Avatar
  • Offline
  • Project Manager
  • Project Manager
  • Dragon Power Supreme
More
31 Jan 2011 02:12 #113 by IsraeliRD
Replied by IsraeliRD on topic Basic Marble Blast Coding Q&A
Having exact sizes is usually incorrect, the trigger has to be slightly larger than the colmesh. We assume the marble comes with usual speed to bump off this colmesh and it won't just get near it and go back or something. That is because if trigger and colmesh are same size (or trigger is v. slightly larger), it will not register when the trigger is triggered. Having it larger means it can trigger unless the marble goes in way too high speeds.

(And if that's to do multiplayer, then that's the least of his problems.)

"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
31 Jan 2011 02:14 #114 by Stal
Replied by Stal on topic Basic Marble Blast Coding Q&A
Hmm, putting an OOB in the same spot as my floor seemed to make it pretty dangerous...
The coordinates and dimensions were the same, I made sure in constructor.

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

  • IsraeliRD
  • IsraeliRD's Avatar
  • Offline
  • Project Manager
  • Project Manager
  • Dragon Power Supreme
More
31 Jan 2011 02:41 #115 by IsraeliRD
Replied by IsraeliRD on topic Basic Marble Blast Coding Q&A
Put it in different parts

"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
31 Jan 2011 13:47 #116 by Phil
Replied by Phil on topic Basic Marble Blast Coding Q&A
Quote:@The beginning of this page:
When the marble successfully jumps, it must complete a function, or at least a few lines (jump() for example). Why not add some code to jump() to call your own function to do what you want?
Actually, jump() is called every time the player presses and releases the space bar, not when the marble actually does jump. This function really just acts as code to handle the key press/release to jump.

It's a bit weird, but the marble is actually set to continually jump when $mvTriggerCount2 is incremented, and stops jumping when you increment that again.

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

More
31 Jan 2011 21:49 #117 by picklecow10
Replied by picklecow10 on topic Basic Marble Blast Coding Q&A
Hm, that gives me an idea on how to count the number of jumps- kinda.

From what I'd imagine, it'd disable holding down the spacebar to jump, but that might be fixable...

Anyone know a way to run a function whenever the marble hits the ground?

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

More
31 Jan 2011 23:18 #118 by Stal
Replied by Stal on topic Basic Marble Blast Coding Q&A
Trigger.
@Phil execute code every time in increments?

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

More
31 Jan 2011 23:47 #119 by marbleking
Replied by marbleking on topic Basic Marble Blast Coding Q&A
Is it possible to make particle emitters break up into speaks lets say like if you want to make it know and you cant get it to break up like snow. Is it possible now or do we have to wait till MBF cause i know Aaryl has the code for it.

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

More
01 Feb 2011 01:07 #120 by Stal
Replied by Stal on topic Basic Marble Blast Coding Q&A
Do you mean deactivating/activating the emitter?

Anyway I'll reiterate my question as it wasn't going to be answered.

Jan 30, 2011, 6:03pm, mbgdemon wrote:
My question:
Can we set up a trigger that will activate landmines (by calling their item ID), tornados, fans magnets? I'd love to set up a seemingly safe pasege, but when you start going through - BOOM BOOM WHOOOSH WAAAOOOWW BOOM BOOM WHOOOSH

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

Moderators: AayrlKalle29Regislian