Marble Blast Forums
« Basic Marble Blast Coding Q&A »

Welcome Guest. Please Login or Register.
May 25, 2013, 10:29am


Marble Blast Forums


Marble Blast Forums :: Marble Blast Modifications Zone :: Marble Blast Development Kit :: Codes :: Basic Marble Blast Coding Q&A
« Page 8 of 11 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]
 AuthorTopic: Basic Marble Blast Coding Q&A (Read 12,659 times)
Stal
Elite Marbler
*****
[ss:Default Skin]
member is offline

[avatar]

Let's go there really, really fast. If something gets in our way - shoot it!

[msn]

Joined: Aug 2009
Gender: Male
Posts: 1,392
Location: Очевидно, не так ли?
 Re: Basic Marble Blast Coding Q&A
« Reply #210 on Mar 10, 2011, 11:50am »

Nope. You should know this, there are a bunch of new PU's in MBOpal..
Link to Post - Back to Top  IP: Logged

[image] [image] [image]
[image]
"Ok, so steal from the rich and give to us. Sounds good :)"
Hi Guy‮
Expert Marbler
****
TorqueScript Hacking Maniac[ss:Blue Groove (MF)]
member is offline

[avatar]

If you can see my avatar, then my server is still functioning.



Joined: Mar 2008
Gender: Male
Posts: 610
Location: Both nowhere and everywhere...
 Re: Basic Marble Blast Coding Q&A
« Reply #211 on Mar 12, 2011, 10:54pm »

Erm, Stal, I coded those PUs. It was a bunch of work, and modified about 6-8 source files.
« Last Edit: Mar 12, 2011, 10:54pm by Hi Guy‮ »Link to Post - Back to Top  IP: Logged

Definitely On-Topic MBP Coding
[image]
picklecow10
Beginner Marbler
*
member is offline





Joined: Mar 2010
Posts: 65
 Re: Basic Marble Blast Coding Q&A
« Reply #212 on Mar 22, 2011, 10:46am »

Quick question, not sure where to ask it:

Did we ever find out a way to give the player a powerup via console?

'cause I just managed to create a way to do that, and I feel like I read that it wasn't possible to do at the moment. So I wanted to check if nobody knows how to do it, or I'm just insane and never saw it before :D
Link to Post - Back to Top  IP: Logged

Iz I a hacking n00b?

MBP .dso Mod: Change your high score time: http://www.marbleblast.com/index.cgi?board=mbp&action=display&thread=10049
Pablo
Global Moderator
********
PQ Map Engineer[ss:Default Skin]
member is offline



[msn]
[homepage]

Joined: Mar 2007
Gender: Male
Posts: 12,305
 Re: Basic Marble Blast Coding Q&A
« Reply #213 on Mar 22, 2011, 9:41pm »

How'd you manage it?
Link to Post - Back to Top  IP: Logged

[image]
IsraeliRD
Administrator
**********
Dragon Power Supreme[ss:Default Skin]
member is offline

[avatar]

Controlling Marble Blast with my mind



Joined: Oct 2006
Gender: Male
Posts: 12,675
Location: Lung Fung Tower, Chang Yang
 Re: Basic Marble Blast Coding Q&A
« Reply #214 on Mar 22, 2011, 11:31pm »

It should be rather easy afaik from what I was taught by Seiz.
Link to Post - Back to Top  IP: Logged


Dec 1, 2011, 11:19am, perishingflames wrote:
Marblefire's post was dripping with so much sarcasm that it was almost offensive :P

[image]
RDs.empire
Respected Marbler
*****
Silent 3D artist[ss:Phil'sEmpire Skin]
member is offline

[avatar]

We shal RULE the universe once we figure out what is one...

[msn]

Joined: Oct 2009
Gender: Male
Posts: 1,200
Location: Under your bed
 Re: Basic Marble Blast Coding Q&A
« Reply #215 on Mar 23, 2011, 3:00am »

Sounds like easy cheating but it would be fun to use. :D
Link to Post - Back to Top  IP: Logged

Playing arround blender render... Soon...
[image]
Jeff
Elite Marbler
*****
torqueScript maniac[ss:Default Skin]
member is offline



MBP Leaderboard Moderator.



Joined: Nov 2010
Gender: Male
Posts: 1,559
Location: Kicking people from LBs...
 Re: Basic Marble Blast Coding Q&A
« Reply #216 on Mar 23, 2011, 6:52am »

I am not sure Picklecow. If you dont mind, would you post the code in the DK?

Edit: Where is the variable "$Game::ScoreTime" defined at in MB?
« Last Edit: Mar 23, 2011, 8:13am by Jeff »Link to Post - Back to Top  IP: Logged

[image]
picklecow10
Beginner Marbler
*
member is offline





Joined: Mar 2010
Posts: 65
 Re: Basic Marble Blast Coding Q&A
« Reply #217 on Mar 24, 2011, 9:51am »

May post the codes in a little bit, but first I'm working on a better random powerup script- something kind of like a item wheel... not really sure how to explain it. Imagine the Mario Kart item system.


Mar 23, 2011, 6:52am, Jeff wrote:
I am not sure Picklecow. If you dont mind, would you post the code in the DK?

Edit: Where is the variable "$Game::ScoreTime" defined at in MB?


Not sure where it's defined, can't find it in the game files (may be defined in a compiled script).

It gets a value in the endGame() in Game.cs, in case you didn't already know that/helps you out at all :D
Link to Post - Back to Top  IP: Logged

Iz I a hacking n00b?

MBP .dso Mod: Change your high score time: http://www.marbleblast.com/index.cgi?board=mbp&action=display&thread=10049
Jeff
Elite Marbler
*****
torqueScript maniac[ss:Default Skin]
member is offline



MBP Leaderboard Moderator.



Joined: Nov 2010
Gender: Male
Posts: 1,559
Location: Kicking people from LBs...
 Re: Basic Marble Blast Coding Q&A
« Reply #218 on Mar 24, 2011, 10:01am »

thanks anyways picklecow.
Link to Post - Back to Top  IP: Logged

[image]
dobrakmato
Advanced Marbler
***
C# Code master[ss:Default Skin]
member is offline

[avatar]

Are you a XNA developer? Contact me!


[homepage]

Joined: Aug 2010
Gender: Male
Posts: 314
Location: Teraz uvidíme kto to prečíta..
 Re: Basic Marble Blast Coding Q&A
« Reply #219 on Mar 24, 2011, 7:27pm »

How to destroy shape(powerup shape) after colision with marble? Is for there any function?
Link to Post - Back to Top  IP: Logged

Just an another signature ._____________________.
Hi Guy‮
Expert Marbler
****
TorqueScript Hacking Maniac[ss:Blue Groove (MF)]
member is offline

[avatar]

If you can see my avatar, then my server is still functioning.



Joined: Mar 2008
Gender: Male
Posts: 610
Location: Both nowhere and everywhere...
 Re: Basic Marble Blast Coding Q&A
« Reply #220 on Mar 25, 2011, 6:44am »

Like to hide it? Use %obj.hide(true); to hide an object, and run that in Marble::onCollision() in marble.cs.
Link to Post - Back to Top  IP: Logged

Definitely On-Topic MBP Coding
[image]
dobrakmato
Advanced Marbler
***
C# Code master[ss:Default Skin]
member is offline

[avatar]

Are you a XNA developer? Contact me!


[homepage]

Joined: Aug 2010
Gender: Male
Posts: 314
Location: Teraz uvidíme kto to prečíta..
 Re: Basic Marble Blast Coding Q&A
« Reply #221 on Mar 25, 2011, 7:16am »

Thanks, working.
« Last Edit: Mar 25, 2011, 6:23pm by dobrakmato »Link to Post - Back to Top  IP: Logged

Just an another signature ._____________________.
Hi Guy‮
Expert Marbler
****
TorqueScript Hacking Maniac[ss:Blue Groove (MF)]
member is offline

[avatar]

If you can see my avatar, then my server is still functioning.



Joined: Mar 2008
Gender: Male
Posts: 610
Location: Both nowhere and everywhere...
 Re: Basic Marble Blast Coding Q&A
« Reply #222 on Mar 26, 2011, 11:19pm »

Hey, does anyone know how to get the exact camera rotation? By camera rotation I mean direction the camera (viewpoint) is facing. I tried using LocalClientConnection.camera, but that only relates to the "Observer" object, and gives me no values. I tried putting this in PlayGui.updateControls():
Code:
$zCameraRotation += -$mvYawLeftSpeed + $mvYawRightSpeed + $mvYaw;

But that gives incorrect results.
So does anyone know how to find this? Thanks,

HiGuy
Link to Post - Back to Top  IP: Logged

Definitely On-Topic MBP Coding
[image]
Jeff
Elite Marbler
*****
torqueScript maniac[ss:Default Skin]
member is offline



MBP Leaderboard Moderator.



Joined: Nov 2010
Gender: Male
Posts: 1,559
Location: Kicking people from LBs...
 Re: Basic Marble Blast Coding Q&A
« Reply #223 on Mar 27, 2011, 10:41am »

you may be able to find something in default.bind.cs

also, if anybody has startmissiongui.gui it would be great if you could send it too me.
Link to Post - Back to Top  IP: Logged

[image]
Hi Guy‮
Expert Marbler
****
TorqueScript Hacking Maniac[ss:Blue Groove (MF)]
member is offline

[avatar]

If you can see my avatar, then my server is still functioning.



Joined: Mar 2008
Gender: Male
Posts: 610
Location: Both nowhere and everywhere...
 Re: Basic Marble Blast Coding Q&A
« Reply #224 on Mar 28, 2011, 1:55am »

SMG.gui? PM Matan.
Link to Post - Back to Top  IP: Logged

Definitely On-Topic MBP Coding
[image]
Jeff
Elite Marbler
*****
torqueScript maniac[ss:Default Skin]
member is offline



MBP Leaderboard Moderator.



Joined: Nov 2010
Gender: Male
Posts: 1,559
Location: Kicking people from LBs...
 Re: Basic Marble Blast Coding Q&A
« Reply #225 on Mar 28, 2011, 2:23am »

i actually have it already :P

i need joinservergui.gui

matan, plz :D
Link to Post - Back to Top  IP: Logged

[image]
dobrakmato
Advanced Marbler
***
C# Code master[ss:Default Skin]
member is offline

[avatar]

Are you a XNA developer? Contact me!


[homepage]

Joined: Aug 2010
Gender: Male
Posts: 314
Location: Teraz uvidíme kto to prečíta..
 Re: Basic Marble Blast Coding Q&A
« Reply #226 on Apr 12, 2011, 4:14am »

In which file(or function) is starting local game (i mean creating defaultmarble shape)?
Link to Post - Back to Top  IP: Logged

Just an another signature ._____________________.
Jeff
Elite Marbler
*****
torqueScript maniac[ss:Default Skin]
member is offline



MBP Leaderboard Moderator.



Joined: Nov 2010
Gender: Male
Posts: 1,559
Location: Kicking people from LBs...
 Re: Basic Marble Blast Coding Q&A
« Reply #227 on Apr 12, 2011, 6:12am »

game.cs

marble/server/scripts
Link to Post - Back to Top  IP: Logged

[image]
dobrakmato
Advanced Marbler
***
C# Code master[ss:Default Skin]
member is offline

[avatar]

Are you a XNA developer? Contact me!


[homepage]

Joined: Aug 2010
Gender: Male
Posts: 314
Location: Teraz uvidíme kto to prečíta..
 Re: Basic Marble Blast Coding Q&A
« Reply #228 on Apr 13, 2011, 3:23am »

Thanks i found it.. I have another question abou Gui element. It will work if i make this code
Code:
//--- OBJECT WRITE BEGIN ---
new GuiChunkedBitmapCtrl(MarbleChooseGui) {
profile = "GuiContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
bitmap = "./background.jpg";
useVariable = "0";
tile = "0";

new GuiControl() {
profile = "GuiWindowProfile";
horizSizing = "center";
vertSizing = "center";
position = "65 126";
extent = "510 228";
minExtent = "8 8";
visible = "1";
helpTag = "0";

new GuiObjectView(ballobject) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "13 19";
extent = "140 132";
minExtent = "8 8";
visible = "1";
helpTag = "0";
cameraZRot = "0";
forceFOV = "0";
model = "~/data/shapes/balls/Marble_1.dts";
skin = "base";
cameraRotX = "0.25";
cameraZRotSpeed = "0.001";
orbitDistance = "0.5";
autoSize = "0";
};
};
};

//--- OBJECT WRITE END ---

function ballobject::onClick()
{
//anything cool...
}
?

Or if not how to make code for click on object?
Link to Post - Back to Top  IP: Logged

Just an another signature ._____________________.
Jeff
Elite Marbler
*****
torqueScript maniac[ss:Default Skin]
member is offline



MBP Leaderboard Moderator.



Joined: Nov 2010
Gender: Male
Posts: 1,559
Location: Kicking people from LBs...
 Re: Basic Marble Blast Coding Q&A
« Reply #229 on Apr 13, 2011, 5:23am »

i am not sure for object. (higuy, seiz, matan, anybody) you can do that for a bitmap image though. It may be onUse though, I am not sure.
Link to Post - Back to Top  IP: Logged

[image]
Hi Guy‮
Expert Marbler
****
TorqueScript Hacking Maniac[ss:Blue Groove (MF)]
member is offline

[avatar]

If you can see my avatar, then my server is still functioning.



Joined: Mar 2008
Gender: Male
Posts: 610
Location: Both nowhere and everywhere...
 Re: Basic Marble Blast Coding Q&A
« Reply #230 on Apr 13, 2011, 10:31am »

Have a GuiButtonBaseCtrl over the GuiObjectView, and use that for calling methods.
Link to Post - Back to Top  IP: Logged

Definitely On-Topic MBP Coding
[image]
RDs.empire
Respected Marbler
*****
Silent 3D artist[ss:Phil'sEmpire Skin]
member is offline

[avatar]

We shal RULE the universe once we figure out what is one...

[msn]

Joined: Oct 2009
Gender: Male
Posts: 1,200
Location: Under your bed
 Re: Basic Marble Blast Coding Q&A
« Reply #231 on Apr 20, 2011, 2:17pm »

I have been working on animated startpads but i have one huge problem. I enter level. Animation starts then stops and after i went OBB it isnt reseting and moving again. Target is to tell pad to reset animation after going OBB. This is Pads.cs that i use now for animation http://localhostr.com/download/B59Qitj/pads.cs
But i dont know how to code it so it resets after going OBB or restarting level.
In blender dts exporter i exported animation as normal that runs one time.
I also need to make pads.cs so that animation starts when you enter EndPad.
Link to Post - Back to Top  IP: Logged

Playing arround blender render... Soon...
[image]
dobrakmato
Advanced Marbler
***
C# Code master[ss:Default Skin]
member is offline

[avatar]

Are you a XNA developer? Contact me!


[homepage]

Joined: Aug 2010
Gender: Male
Posts: 314
Location: Teraz uvidíme kto to prečíta..
 Re: Basic Marble Blast Coding Q&A
« Reply #232 on Apr 20, 2011, 7:17pm »

Maybe this works ;):

//-----------------------------------------------------------------------------

function GameConnection::onOutOfBounds(%this)
{
if ($Game::State $= "End")
return;

// Reset the player back to the last checkpoint
PlayGui.setMessage("outOfBounds",2000);
%this.play2d(OutOfBoundsVoiceSfx);
%this.player.setOOB(true);
%this.player.startpad.playThread(0,"pad");
if(!isEventPending(%this.respawnSchedule))
%this.respawnSchedule = %this.schedule(2500, respawnPlayer);
}

this is from game.cs.
Link to Post - Back to Top  IP: Logged

Just an another signature ._____________________.
RDs.empire
Respected Marbler
*****
Silent 3D artist[ss:Phil'sEmpire Skin]
member is offline

[avatar]

We shal RULE the universe once we figure out what is one...

[msn]

Joined: Oct 2009
Gender: Male
Posts: 1,200
Location: Under your bed
 Re: Basic Marble Blast Coding Q&A
« Reply #233 on Apr 21, 2011, 2:57am »

dont know if i instaled it incorectly but it didnt worked. Can you send me game.cs in MBR proboards please?
Link to Post - Back to Top  IP: Logged

Playing arround blender render... Soon...
[image]
dobrakmato
Advanced Marbler
***
C# Code master[ss:Default Skin]
member is offline

[avatar]

Are you a XNA developer? Contact me!


[homepage]

Joined: Aug 2010
Gender: Male
Posts: 314
Location: Teraz uvidíme kto to prečíta..
 Re: Basic Marble Blast Coding Q&A
« Reply #234 on Apr 21, 2011, 4:00am »

RDs.empire: I posted game.cs on MBR forums. Go for it.
Link to Post - Back to Top  IP: Logged

Just an another signature ._____________________.
NaCl586
Professional Marbler
***
Searching Stolen Seven Gems[ss:Phil'sEmpire Skin]
member is offline

[avatar]

MBElite Level and Skybox Designer

[msn]

Joined: Jul 2010
Gender: Female
Posts: 485
Location: Depends where I am now
 Re: Basic Marble Blast Coding Q&A
« Reply #235 on Apr 30, 2011, 11:10am »

BUMP! (i don't think this is bump)
I have few question
1.How to create new powerup
2.Where the powerup script go

thanks

~NaCl586 10%Warn
Link to Post - Back to Top  IP: Logged

2.05, 2.63, 7.47
7s count : 51
~NaCl586~
Jeff
Elite Marbler
*****
torqueScript maniac[ss:Default Skin]
member is offline



MBP Leaderboard Moderator.



Joined: Nov 2010
Gender: Male
Posts: 1,559
Location: Kicking people from LBs...
 Re: Basic Marble Blast Coding Q&A
« Reply #236 on Apr 30, 2011, 12:22pm »

you need to look in powerups.cs. However, the game is hard coded so that u only can have 5 powerupids, which is the 5 powerups besides gravity modifier and time travel since they are onCollision specific. You would have to create custom codes like opal did (which I am not suppling to people nor does even 90% of the staff have the codes (its that secrete)). Then, you have to first decide what you want it to do, on collision effect is fine since u don't need a powerupid though, such as mbp's easter egg, you could have it as a powerupid = 0 or no such dynamic field of a powerupId. if you want to do an on collision effect, its this syntax:

function theitemname::onCollision(%this,%obj,%col)
{
then write your commands;
}
« Last Edit: Apr 30, 2011, 12:26pm by Jeff »Link to Post - Back to Top  IP: Logged

[image]
NaCl586
Professional Marbler
***
Searching Stolen Seven Gems[ss:Phil'sEmpire Skin]
member is offline

[avatar]

MBElite Level and Skybox Designer

[msn]

Joined: Jul 2010
Gender: Female
Posts: 485
Location: Depends where I am now
 Re: Basic Marble Blast Coding Q&A
« Reply #237 on Apr 30, 2011, 12:37pm »

sorry , i mean inventory powerup like marble recoil and anti recoil
Link to Post - Back to Top  IP: Logged

2.05, 2.63, 7.47
7s count : 51
~NaCl586~
Jeff
Elite Marbler
*****
torqueScript maniac[ss:Default Skin]
member is offline



MBP Leaderboard Moderator.



Joined: Nov 2010
Gender: Male
Posts: 1,559
Location: Kicking people from LBs...
 Re: Basic Marble Blast Coding Q&A
« Reply #238 on Apr 30, 2011, 12:56pm »

then you have to make custom scripts, i cant help you much farther, sorry.
Link to Post - Back to Top  IP: Logged

[image]
whirligig
Intermediate Marbler
**
member is offline





Joined: Dec 2009
Gender: Male
Posts: 114
 Re: Basic Marble Blast Coding Q&A
« Reply #239 on Jun 26, 2011, 2:40am »

Custom powerups are in this topic: http://marbleblast.com/index.cgi?board=mbdkcode&action=display&thread=11902

Here's a question: How do I modify the force magnitude of a mine? (i.e. Mine vs. Nuke) Whatever I try to do, it seems that the force is always the same.
Link to Post - Back to Top  IP: Logged
« Page 8 of 11 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile