Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - SWAT One

Pages: 1 ... 10 11 12 13 14 [15] 16 17 18 19 20 ... 22
211
Modification Help / Function is being fickle - Raycasts
« on: December 05, 2012, 03:47:10 AM »
Okay, so I don't know what it is, but it appears to just not like something, namely the absence of something after the }; mark.


Here is my original function:
Code: [Select]
function leviathanImage::onFire(%this, %obj, %slot)
{
if(%obj.lastShot[%this] + %this.minShotTime > getSimTime())
{
return;
}
%obj.lastShot[%this] = getSimTime();
%start = %obj.getMuzzlePoint(%slot);
%end = vectorAdd(%start, vectorScale(%obj.getMuzzleVector(%slot), 500));
%typemasks = $Typemasks::PlayerObjectType | $Typemasks::FxBrickObjectType | $Typemasks::TerrainObjectType | $Typemasks::InteriorObjectType | $TypeMasks::StaticObjectType | $TypeMasks::VehicleObjectType;
%ray = containerRaycast(%start, %end, %typemasks, %obj);
if(isObject(%hit = firstWord(%ray)))
{
%pos = posFromRaycast(%ray);
%apos = vectorAdd(%pos, vectorScale(normalFromRaycast(%ray), 0.05));
%prj = new Projectile()
{
datablock = LeviathanProjectile;
initialPosition = %apos;
initialVelocity = vectorScale(%obj.getMuzzleVector(%slot), 200);
scale = %obj.getScale();
sourceObject = %obj;
sourceSlot = %slot;
client = %obj.client;
Leviathanbullet = true;
};
}
};

Here is the error report:
Code: [Select]
Loading Add-On: Weapon_Leviathan (CRC:327213675)
Add-Ons/Weapon_Leviathan/server.cs Line: 462 - Syntax error.
>>> Some error context, with ## on sides of error halt:
^^%apos = vectorAdd(%pos, vectorScale(normalFromRaycast(%ray), 0.05));

^^%prj = new Projectile()

^^{

^^^datablock = LeviathanEmitterA;

^^^initialPosition = %apos;

^^^initialVelocity = "0 0 0";

^^^scale = %obj.getScale();

^^^sourceObject = %obj;

^^^sourceSlot = %slot;

^^^client = %obj.client;

^^};

^}

};##
##


function leviathanImage::onFire(%this, %obj, %slot)

{

^if(%obj.lastShot[%this] + %this.minShotTime > getSimTime())

^{

^^return;

^}

^%obj.lastShot[%this] = getSimTime();

^%start = %obj.getMuzzlePoint(%slot);

^%end = vectorAdd(%start, vectorScale(%obj.getMuzzleVector(%slot), 500));
>>> Error report complete.

ADD-ON "Weapon_Leviathan" CONTAINS SYNTAX ERRORS

Correct me if I'm wrong, but it looks like it doesn't like something that isn't there, maybe it doesn't like the enter.  Any variation with the semicolon seems to fail.  The "symptom" is that when switching to the Loading Datablocks phase, Blockland crashes.

212
Off Topic / George Carlin on "Losing Things"
« on: December 04, 2012, 08:13:27 PM »
http://www.youtube.com/watch?v=h_bmPbPHCOY

I cried laughing.  This guy is great.

213
Off Topic / Scottish Independence
« on: November 08, 2012, 12:09:10 AM »
So just to see where everyone's opinion is, how do you all think about Scotland being an independent country?

Vote in the poll and post any additional thoughts below.

214
Like mission editor, with a saving capability.

215
Off Topic / Anyone know of a free program I can use to make a font?
« on: October 28, 2012, 10:55:25 PM »
All that I found with a google search are either expensive or are on websites that give you viruses.

216
Off Topic / Who is "Idle"?
« on: October 24, 2012, 10:09:32 PM »
This is Idle.  Apparently, "she" has been online for the longest amount of time than anybody.  "She" also has 0 posts.

Profile:
http://forum.blockland.us/index.php?action=profile;u=38771

Look under 'Most time online' panel.
http://forum.blockland.us/index.php?action=stats

217
Off Topic / [[The BLF Music Composition Thread]]
« on: October 01, 2012, 06:53:30 PM »
~ The Music Composition Thread ~

Hello all members of the Blockland Forums.  Personally, I love music and have been writing it for a while, and I'm wondering what other members of BLF also compose.  So in short, this is a thread where you proudly present any music or lyrics that you have written.

Share your tastes in music, your goals or some techniques to help out other composers on this forum.  Music theory help is appreciated.  To all non-musicians, critique would be appreciated if and only if the author allows it.

Please comply with the BLF rules and do not claim rights to a song that you do not own.
(However, posting a song that you are trying to base your song off of is an exception)

My music:

https://soundcloud.com/pryorworks1

If I find that you put my music on YouTube without my permission, I will have it taken down.

218
Simple, if you like a topic OP in Suggestions and Requests, then you can upvote it.  The number of upvotes gets seen in the title of the topic and cannot be edited.  No, it would be a bad idea for downvotes because trolls would do that without even reading the topic or thinking twice about it.

219
Suggestions & Requests / Massive War Zeppelin Clusterforget
« on: August 20, 2012, 02:33:48 PM »
Okay, I know very well that this is entirely unrealistic, but this is Blockland.  You can make it as goofy as you want it.

What I'm suggesting is a massive armored blimp that you can fly around and use several of the mounted turrets on it.  The driver would have the capability to carpet bomb or nuke the ground, while there would be two heavy cannons on it that would be manned by players; One in front, one in back.  Other than that, there would be 4 MG turrets, two on each side.  Any other players would have mounts in the back, so when they dismount, they can parachute out into enemy territory.

It would have a huge amount of health and would move as slow as forget, but be so massive and well-armed that it wouldn't even matter.

Discuss.

220
Suggestions & Requests / gm_flatgrass in Blockland
« on: August 19, 2012, 01:12:43 PM »
In response to this.

Title.  With all the textures and lighting.

221
Suggestions & Requests / Wat Face
« on: August 17, 2012, 11:46:24 AM »

This, in the blocko style, just for the lols.

222
Suggestions & Requests / Microwave Gun
« on: August 14, 2012, 02:04:03 PM »
I would like to see a gun that raycasts and works much like the laser pointer that we have currently, but does not leave a trace that will burn you, or leave a trace at all.  It should just open up some animated flaps and then the target starts burning slowly as the user uses it.  If the player is down to 50% health, the player should catch on fire.

Like said, it fires microwaves.  Sounds should be similar to the TF2 medigun.

Thanks!

223
Suggestions & Requests / Suggestion: v21+ Custom Day/Night Cycles.
« on: August 07, 2012, 03:34:50 PM »
Okay, request time for future development on the S&S update.  I would really like to see the addition of a custom Day/Night Cycle tool.  It would use editable gradients with multiple sliders for direct light, ambient light, sun color, water color and shadow color.  Essentially this would be much like what we saw in the preview, but as for the tools that we have seen so far, there only appears to be a checkbox that says:
[ ] Enable  Day/Night Cycle

A concept of the editable gradients:



Of course these gradients aren't what we'll need to make better day/night cycles, but I think that if this were to be created in game, it would have much better quality.  So anyway, please discuss any other ideas you might have to add on to this concept for any future versions of the game.

Yes, I know Kalphiter will likely come here and say "there is no v21."  Please keep that stuff out of this topic.  You've already complained everywhere else.  I would like this to remain on topic and keep this idea open for discussion.

224
Title + ...Who would you like to meet?

225
No Poll, but I was curious what the community thinks the default Weapon_Gun Add-On was modeled after.

Pages: 1 ... 10 11 12 13 14 [15] 16 17 18 19 20 ... 22