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.


Messages - Pacnet2012³

Pages: 1 2 3 4 5 6 [7] 8 9 10 11 12 ... 65
91
Modification Help / Re: is a client level up system posable?
« on: July 17, 2013, 09:38:33 PM »
Code: [Select]
function getScore(%guy)
{   
     for (%i = 0;%i<NPL_List.rowCount();%i++)
     {
          %rowText = NPL_List.getRowText(%i);
         
          if(getField(%rowText, 1) $= %guy) //would it be getField or getWord
          {
               return getField(%rowText, 2);
          }
     }
     
     return 0;
}

92
Off Topic / Re: Happy Birthday Danny Boy
« on: July 17, 2013, 08:59:24 PM »
He claimed that he's 18 on a server so I think he's lying again

93
General Discussion / Re: Apak's SpeedKart Tournament
« on: July 17, 2013, 12:18:10 PM »
In the qualifer, if you die, you're out.

In the other rounds, if you die you restart.

Can we have 3 qualifiers and the best one is our time? So if we die and that might be a rare chance for some people although they are actually very good, we don't get held to that?

94
No it doesn't
To add-on, more people are and will reply to this application since it is a separate topic. In the globe servers thread, less people would reply, so this takes up more space.

95
My brother will like this one - he CONSTANTLY cares about his / other people's reputation on Blockland

96
Modification Help / Re: Parenting the echo() function
« on: July 17, 2013, 08:15:39 AM »
@Echo off
Blockland\Blockland.exe -
It looks like launching the process leaves the console blank when done from C# but via command prompt, it works fine. I didn't include @Echo off, though. Maybe what I'm doing to capture stdout is what's leaving the console blank?

97
Modification Help / Re: Parenting the echo() function
« on: July 16, 2013, 03:02:16 PM »
Why not
At least by default you can't

98
Modification Help / Re: Parenting the echo() function
« on: July 16, 2013, 02:55:26 PM »
I was trying to compile a stream test C# .NET application to capture stdout from Blockland but because I can only run the launcher as a Process (Running Blockland.exe itself as usual does not work) and the cracked .exe sadly requires a BLMod.dll which would be impossible to find. As expected, you can't capture stdout from Blockland.exe after BlocklandLauncher opens that.

It would be great to see what Port could come up with.






99
Modification Help / Re: wont execute nested addon?
« on: July 16, 2013, 01:12:13 PM »
Make sure your add-on does not have an add-on folder inside it.

Example Correct Addon Folder :

Client_MyGUI (folder / zip)
|
|-mygui.gui
|-client.cs
|-description.txt


Example Incorrect Addon Folder :

Client_MyGUI (folder / zip)
|
|-mygui.gui
|-client.cs
|-description.txt
|-Client_MyGui (folder / zip)
 |
 |-mygui.gui
 |-client.cs
 |-description.txt


Do not have an add-on inside an add-on.
 

100
Help / Re: help with pictures
« on: July 15, 2013, 10:14:06 PM »

Noedit - Use the direct link to the image for the IMG 'tags'

101
Help / Re: help with pictures
« on: July 15, 2013, 10:12:48 PM »

102
Modification Help / Re: Parenting the echo() function
« on: July 15, 2013, 08:30:01 PM »
I wonder if you can use file objects to read the console log on Linux?

It's actually funny because you can open it in gedit (it constantly asks you to reload the file)


103
General Discussion / Re: Apak's SpeedKart Tournament
« on: July 15, 2013, 05:10:38 PM »
I signed up,  but please tell me that you'll make time trials solo and we don't compete with guns.
I won the red raceway challenge but never got my steam game, so I hope I can trust this one.

104
Modification Help / Re: Parenting the echo() function
« on: July 15, 2013, 04:22:05 PM »
You could make another program separate from Blockland which reads the console output and then writes it to a file using something like C++ or Java.

Kalphiter provided this Java snippet before :

Code: [Select]
    public void run()
    {
String consoleLine = null;
    try
{
    String lastTwoChars = "";
    String lastChar_0 = "";
    String lastChar_1 = "";

    Runtime rt = Runtime.getRuntime();

    proc = rt.exec(cmd);
    proc_in = proc.getInputStream();
    proc_out = proc.getOutputStream();
    proc_err = proc.getErrorStream();
    BufferedReader input = new BufferedReader(new InputStreamReader(proc.getInputStream()));
    output = new BufferedWriter(new OutputStreamWriter(proc.getOutputStream()));
    String currentChar;
    int lineInt;
    while ((lineInt = input.read()) >= 0 && lineInt < 256)
    {
currentChar = new String(new byte[] { new Integer(lineInt).byteValue() });
lastChar_0 = lastChar_1;
lastChar_1 = currentChar;
lastTwoChars = lastChar_0 + lastChar_1;

if(lineInt == 10)
{
    addConsole(consoleLine);
    consoleLine = "";
}
else if(lineInt != 13)
    consoleLine += currentChar;
    }
    running = false;
}
catch(Exception g)
{
    addConsole("Exception: "+ g);
    running = false;
}
running = false;
onStop();
    }
Of course, there are many methods that aren't there, and I was just having fun with reading character by character
And you could access the process and read the output from the memory

But yes, you can't use echo(); , eval(); , or read the console.log file. You'd have to make a separate wrapper program which does it. Since you know Java, hopefully you can work off of this code.

105
Help / Re: I dont have a dedicated File in my BL folder.
« on: July 15, 2013, 03:07:11 PM »
-filePath [filePath] : set the file path of the blockland server you want to run, useful with multiple different blockland folders.


This is supposed to be -profilePath, it's been a while since I used dedicated servers

Pages: 1 2 3 4 5 6 [7] 8 9 10 11 12 ... 65