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 - Zeblote

Pages: 1 [2] 3 4
16
Modification Help / How to move a light
« on: August 31, 2013, 10:38:53 AM »
I create a light like this:


datablock fxLightData(playerFlashlightData : playerLight) {
   uiName = "";
   flareOn = 0;

   radius = 10; // 10
   brightness = 3;
};


...
   %light = new fxLight() {
      datablock = playerFlashlightData;
      iconSize = 1;

      player = %player;
      enable = 1;
   };
...


How do I move it?

I tried:

%light.settransform()
%light.position =

%light.inspectpostapply() crashes dedicated servers so can't be used

17
Drama / Savant (37382) - Attempting to scam keys.
« on: July 29, 2013, 02:23:38 PM »
So I was just greeted by this message:



Thinking that it is just a shock image, I tell him that I don't fall for that stuff and use an url unshortener, the link resolves to

https://docs.google.com/spreadsheet/viewform?formkey=dFBPMV9sMlMxemtvRTY1UTNiUl8tOEE6MA

That page contains this (google forms are localized so ignore that there is some german text):



I think everyone know what happens when a newcomer does actually fill out that form.

18
Modification Help / Server name and max players client-sided
« on: June 02, 2013, 09:23:36 AM »
How do I get the server name and the max players client-sided?

I know I can capture it with these 2 functions

secureClientCmd_SetServerName Display(%host, %name)
secureClientCmd_SetMaxPlayers Display(%players)

But these get first called when I spawn.
Does anyone know how to get the info before spawning, right after joining the server?

19
Modification Help / [Guide] How to view "obfuscated" code
« on: May 28, 2013, 09:15:09 AM »
Did you ever open an add-on to find out how it does a certain thing only to be confronted by the fact that the starfish author put the whole code on one line?

There's a solution!

Step 1: Copy all the code

All the code is on one line :c

Step 2: Go to http://jsfiddle.net

Step 3: Drag the borders to make the top right field fill the screen


Step 4: Paste all code into top right field

Step 5: Click "TidyUp" at the top bar


Step 6: The code is now properly indented


You'll have to fix the for loops manually, but it does everything else correctly
I hope this helps some people as much as it has helped me

20
Off Topic / Google knows everything
« on: May 18, 2013, 03:55:08 AM »
Google knows way more than you think.
Read this

21
Add-Ons / Colorset Editor V1.6 [IMGS]
« on: May 11, 2013, 12:23:34 PM »
COLORSET EDITOR




What can I do with this?
Create new colorsets & edit existing ones easily
Preview colorset changes on your builds in single player
Steal "private" colorsets from servers with category names intact
Package colorsets in a folder that only needs to be zipped for release


Tutorial
Opening The Editor

The mod adds a button to the colorset tab in the start-a-game GUI:



Just click it! Alternatively, there is also a keybind to set so you can open it in servers.
The editor pops up! If you think the window is too small, just re-size it.



Creating A New Colorset

In the Toolbox, hit "Create Set":



Woot! You created a new set with one division with one color:





Editing The Colorset

This is going to be a bit more extensive. Let's get the basics first:
The color with the dark frame around it is the currently selected color.
That means that you can edit this color on the right side of the window.
To select another color, just click on it. To deselect the color, click on the selected color.
To add a new division, hit the + that is on it's own.
To add a new color to a division, hit the + at the bottom of that division.



To edit the selected color, play with the sliders and number fields on the right side.
That will update the preview. If you are happy with the color, click "Apply".
You can also copy and paste the values from the color sliders.
After hitting "Copy" for the first time, "Paste" will become available.



After hitting "Apply", the color will be copied on the slot in the set:



Now if we just play around, we might end up with something like this:



Now, I think it would be good to have an orange below the red! Let's insert a color.
To do this, we select the red and hit "Insert Color" in the Toolbox. We end up with this:



Now we can just set that new color to orange. Wouldn't it be good to have the same colors transparent?
To do this, we select the red and hit "Copy Div Down" in the Toolbox.
"Copy Div Down" copies the selected color and all colors below it.
"Copy Div Up" copies the selected color and all colors above it.
"Copy Color" copies the selected color only.
Now, you might notice that the scroll bar for the Toolbox has gotten a little smaller.
This is because, we now have two more buttons!
"Paste Into Current Div" will paste the copied colors into the current div, right between the selected color and the others.
"Paste As New Div" will paste the copied colors as a new division behind the selected color.
Since we want a second division, we hit "Paste As New Div":



Now we can just make each of the new colors transparent:



Looks fine for a first colorset! We should do one more thing though:
Name those divisions. Select a color in the div and hit "Set Div Name":



If we just change that "New Division" to something like "Neon Colors" and hit "Apply", the division has a name!
We do this for the second division too.
To get rid of an unwanted color just select it and hit "Delete Color". I does magic.
If you delete the last color in a division, the division is gone.
You can also delete the whole division by hitting "Delete Div".
Now it's time to save the set! First, deselect the color (by clicking the selected color).
Then, notice the Toolbox has changed. Click that "Save Set" button.



Enter a file name and some other information (for description.txt) and hit "Save".
The colorset has now been saved together with a description.txt.
You only need to zip it up if you want to release it :D.
Now just close the editor and notice the colorset is already available for your server:




Importing A Colorset
To load a colorset from a file, just click "Load Set" in the empty editor.
Then select a file and hit "Load":




Stealing A Colorset
To steal a colorset from a server, just click "Steal Set" in the empty editor.


Changing The Colorset In Single Player
You have to be running Single Player for this.
To change the colorset in the Single Player, bring up the editor (with the keybind).
Then, load a set (if you want a new) or "steal" the servers set if you want to edit it.
Then, deselect the color and hit "Show In Single Player".
Before loading the set, it must clear all bricks. So save first. (Don't worry, it asks you).
Then, (if the new set has more colors than the old one), it will (ask first then) create the missing datablocks.
Then it will load the set into your Single Player.
You can start building with the new colors right away!
NOTE: If you load a colorset with less colors than the one before, you will notice artifacts when loading bricks.


New in 1.6: Edit the color as hex value
To edit the hex value of a color, simply select the color and hit "Hex”:




Credits
Zeblote – Gui, script
Ephialtes – RTB gui profiles
Port – A little help
Mustang – Testing


GIVE ME THIS RIGHT NOW

22
Suggestions & Requests / Ship Vehicle
« on: May 04, 2013, 02:54:38 PM »
Right.
http://www.youtube.com/watch?feature=player_detailpage&v=5Y7HRvNxN30#t=82s
I really want this vehicle.
Does anyone happen to still have it?

23
Modification Help / [solved]GuIBitmapBorderCtrl with 1px wide border?
« on: April 26, 2013, 09:30:54 AM »
I want to create a bitmap border ctrl with a one pixel wide border, to archieve a nice bevel effect on white style guis.
However, it does only seem to work with 2px wide borders.

Code that creates the profiles:
Code: [Select]
if(!isobject(StripeBorderProfile))
new GuiControlProfile(StripeBorderProfile : GuiBitmapBorderProfile) {bitmap = "Add-Ons/Client_ZGUI/images/stripeArray";hasbitmaparray = 1;};
if(!isobject(StripeBorderProfile2))
new GuiControlProfile(StripeBorderProfile2 : GuiBitmapBorderProfile) {bitmap = "Add-Ons/Client_ZGUI/images/stripeArray2";hasbitmaparray = 1;};
(I attached the images)

How they look in-game:
The one on the left is one pixel wide, the one on the right two.
Notice how the one pixel wide one is completely messed up and red.

I can't just use the 2px wide one because when I place a swatch in it so it overlaps it one pixel, nothing will happen, the swatch doesn't overlap it.

How can I archieve a one pixel wide bitmap border ctrl?

24
Off Topic / Some program on badspots site
« on: April 13, 2013, 02:25:58 AM »
Right so I found some program on badspots site

http://cloud.blockland.us/RomShelf_2.zip

I have no idea what it is
Can anyone tell me what this is

25
Off Topic / Kaspersky is moaning every time I open a forums page
« on: April 04, 2013, 03:28:37 PM »
Every time I open a page on forums, kaspersky says it found an infected link and removed something.

I have no idea what's going on.
Pic of the list of problems it has found today:



(yes my kaspersky is in german and i wont change it)

It keeps saying it has found some link in a database of malicious links, however I doubt there are any malicious links on forums?

26
Add-Ons / Quick RTB Chat
« on: April 03, 2013, 03:55:21 PM »
Situation:
You are in a server, notice person X is in it, and you want an RTB chat with him right now.

Current solution:
Open RTB, search through the general discussion room, notice he's not in there, type his ID in the add friend field, wait for it to send, click Chat.

Aren't you also tired of that?
New solution:
Double click the person in the player list, and it opens an RTB chat with him.

Download

Note:
When the chat window says "The subject of your message could not be reached" then this means the person is currently not logged in to RTB / has blocked you.

27
Off Topic / Forum time offset is going crazy
« on: March 14, 2013, 10:42:04 AM »
I have to change the time offset settings thing like every week so it matches my time again
What is going on
Why does it keep going crazy?

28
^VOTE^


White style.

White style example (mady by Fluffy)
[awesome]

[/awesome]



Impact style.






Please tell me which gui style you prefer, for a project I am working on.

29
Help / Reenter key?
« on: March 02, 2013, 04:01:17 AM »
Blockland asks me to enter my key when I first start it after rebooting my computer.

Any idea what it's doing this?

1&1 canceled our internet without a reason so I am using a mobile internet stick, could that be the cause?

30
Modification Help / TCP Object Help
« on: February 26, 2013, 04:13:30 PM »
Ok so I made up this code
Code: [Select]
function zgui_serverlist::loadserverimage(%this, %id)
{
if(%id < %this.getcount())
{
filedelete("config/zgui_serverdetail.jpg");
%ip = %this.getobject(%id).ip;
%port = %this.getobject(%id).port;
%dir = strreplace(%ip, "." , "-") @ "_" @ %port;
%request = "GET /detail.php?q=" @ %dir @ " HTTP/1.0\r\nHost:image.blockland.us\r\n\r\n";
%tcp = new TCPObject(zgui_dlserverimagetcp)
{
request = %request;
};
zgui_container.add(%tcp);
%this.dlimagetcp = %tcp;
%tcp.connect("image.blockland.us:80");
}
}

function zgui_dlserverimagetcp::onConnected(%this)
{
%this.send(%this.request);
}

function zgui_dlserverimagetcp::onLine(%this, %line)
{
if(%line $= "")
%this.setBinary(1);
}

function zgui_dlserverimagetcp::onBinChunk(%this, %chunk)
{
cancel(%this.timer);
%this.timer = %this.schedule(1000,endload);
}

function zgui_dlserverimagetcp::endload(%this)
{
%this.saveBufferToFile("config/client/zgui_serverdetail.jpg");
%this.schedule(10,delete);
zgui_serverdetail_image.setbitmap("config/client/zgui_serverdetail.jpg");
}
It's supposed to download a server preview image, like


If I turn on trace it shows what I would expect, it's sending a correct request and then the onLine being called alot and then the onBinChunk being called alot and then the endload,
and then
IT WRITES A loving BLANK FILE

Can someone tell me what is going wrong here?

Pages: 1 [2] 3 4