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

Pages: [1] 2 3 4 5
1
Modification Help / Re: how do i make a print??
« on: July 29, 2010, 02:10:46 AM »
I'v made a couple custom prints but I noticed that I'm the only one that can see them (even if the other player actually downloads the prints). Is there a way to make the prints automatically download for people that join my server?

2
Add-Ons / Re: Dedicated Server Watchdog Program
« on: September 10, 2008, 02:27:31 PM »
Im on windows XP, and I have no updates..

try downloading the .net framework... you shouldn't have too but it would at least help me cross out some of the problems. The latest version is 3.0, 3.5 if you want to use the beta release.

I'm still working on one for you unix users out there, hold tight.

3
Add-Ons / Re: Dedicated Server Watchdog Program
« on: September 04, 2008, 01:49:30 PM »
What operating system are you using?

If you're using windows then it sounds like your missing something from your system files. Make sure your system is up to date and that you have the latest versions of .net installed. If you're using something other than windows then you're pretty much on your own for now.

4
Add-Ons / Re: Dedicated Server Watchdog Program
« on: September 03, 2008, 04:30:12 PM »
Is it called SuperMacro?

I"m not sure, that's what Påndåñ said ti was called. I looked for a while and was only able to find a couple macro programs. All of them that seemed powerful enough had a pretty steep learning curve so I decided not to fuss with it.

How do you install this?
pm me please

The install instructions are included with the post. Just put the file here into the root of your Blockland folder. That will allow it to access everything it needs. I usually make a shortcut to it on my desktop just so I don't have to dig through the filesystem, so feel free to mess around with it. Mind you, it currently doesn't know how to read anything outside of the default blockland directory, so leave that specific alone.

5
Add-Ons / Re: Dedicated Server Watchdog Program
« on: August 29, 2008, 12:41:06 AM »
Thanks for the Cookie.
Here's the updated source. Will now check for "Frozen" servers as well.
I"m working on a cleaner version with a GUI, hopefully i'll be able to figure out how to make it a little more dynamic as well.

Also if someone has this running under WINE on and linux distro, let me know what missing files you have. Most of them are windows files that should be in system32 but have not yet been ported. Please list any other errors as well.

Code: [Select]
#include <windows.h>  // these are our preprocessors. Our API is defined here
#include <iostream>

using namespace std; //include the namespace lib. includes c functions (cout, cin)

STARTUPINFO          si = { sizeof(si) };   //This is a pointer to our "Start Up info" typedef
PROCESS_INFORMATION  pi;                    //This is a pointer to our process information (this is where we can grab the pid)
char                 szExe[] = "C:\\Program Files\\Blockland\\dedicated.bat";
HWND hwnd;
HANDLE phandle; //This is a typedef for the OpenProcess function
DWORD pid;   //this will store the PID of blockland.
DWORD result;
void info(); // Just moving the jibberish out of the way

int main(){
info(); //spits out our info and waits for the user
hwnd=FindWindow(0,"C:\\Program Files\\Blockland\\Blockland.exe");
if(hwnd){
GetWindowThreadProcessId(hwnd, &pid);
cout << endl << "the dedicated server is running under the PID:" << pid << endl;
cout << "Running Back checks..." << endl;
}
while(TRUE){
cout << "\nChecking if the server is up..." << endl;
hwnd=FindWindow(0,"C:\\Program Files\\Blockland\\Blockland.exe");
SendMessageTimeout(hwnd,WM_NULL,0,0,SMTO_BLOCK | SMTO_ABORTIFHUNG, 5000, &result);
if(!hwnd){
cout << "It appears that Blockland isn't up. Re-Launching...";
///*
CreateProcess(0, szExe, 0, 0, TRUE, 0, 0, 0, &si, &pi);
WaitForSingleObject(pi.hProcess, INFINITE);
Sleep(2500);
hwnd=FindWindow(0,"C:\\Program Files\\Blockland\\Blockland.exe");
if(!hwnd){
MessageBox(0,"Unable to Re-Launch your dedicated server. Please make sure that you put this file into your BLOCKLAND folder",0,MB_OK);
break;
}
}
cout << endl << "Making sure it's not frozen..." << endl;
if(result){
cout << "It appears that Blockland is frozen running. Re-Launching...";
///*
CreateProcess(0, szExe, 0, 0, TRUE, 0, 0, 0, &si, &pi);
WaitForSingleObject(pi.hProcess, INFINITE);
Sleep(2500);
hwnd=FindWindow(0,"C:\\Program Files\\Blockland\\Blockland.exe");
if(!hwnd){
MessageBox(0,"Unable to Re-Launch your dedicated server. Please make sure that you put this file into your BLOCKLAND folder",0,MB_OK);
break;
}
else{
GetWindowThreadProcessId(hwnd, &pid);
phandle = OpenProcess(PROCESS_ALL_ACCESS, 0, pid);
cout << "\n your dedicated server has been succefully relaunched." << endl;
}
}
else{
cout << endl << "Check passed, everything is fine" << endl;
cout << "Currently the PID of the hooked blockland server is:" << pid << endl;
//*/

}
Sleep(30000);
}
CloseHandle(phandle);
return 0;
}

void info(){
cout << "Dedicated Server Watchdog Program" << endl;
cout << " Created for Blockland V9" << endl;
cout << " 8/24/08 - Version 1.0 " << endl;
cout << "By: Poent" << endl;
cout << "\n\nThis launcher was designed to work with Blockland stored in:\n C:\\Program Files\\Blockland" << endl;
cout << "You will be able to change this is later versions, \nbut until then... leave it there." << endl;
cout << "\n\n By default, this program will check every 30 seconds \nto make sure that blockland is running." << endl;
cout << "If for any reason the dedicated server is \nnot found, it will relaunch 'dedicated.bat' and verify \nthat it successfully relaunched." << endl;
cout << "\n\n The watchdog program is now ready to launch. \nOnce you're ready to begin, Simply hit 'Enter'..." << endl;
cin.get();
}

I tried loading this up in wine and I've only been able to launch it one way:
1. under terminal, run sudo WINE cmd.exe
2. navigate to your BL folder w/ DSWP in it
3. run DSWP from the terminal.

Once again, please report any missing files and errors here so that I can correct them.

6
Add-Ons / Re: Dedicated Server Watchdog Program
« on: August 26, 2008, 05:13:42 PM »
WINE should be able to convert the basic windows.h functions i'm using. It just converts the calls over. give me.... a second to test it in ubuntu... i'm not sure how it will act using a dos command space...

Edit:
Wine is not finding certain files required for monitoring the process. Right now I'm looking into each of those files to see what i can find. If it's as simple as including those files within the zip i'll just do that. Otherwise i'm looking into Coding and compiling a unix/linux version. I'm having trouble finding a comparable method to find a window handle.. which means i'll probably have to monitor it by its Process name.

7
Gallery / Re: Small Build: Flea
« on: August 26, 2008, 05:12:03 PM »
I prefer the inverted knee style. it looks good

8
Help / Re: Port Forwarding problems.
« on: August 26, 2008, 03:01:33 AM »
I have to configure my modem to port forward. Under vista i can see the modem (and router) as a configurable device. I can then, via windows, configure the ports to be forwarded dynamically, even outside of the routers page. There is a way to do this in XP, i simply cant remember how.

9
Help / Re: Another portforwarding help topic
« on: August 26, 2008, 02:59:19 AM »
Your your modem may need to be set up with a direct connection. Some of them require you to plug in via usb to modify the settings. Otherwise just open up a command prompt and make sure your default gateway is what you think it is by running ipconfig.

10
Add-Ons / Re: Dedicated Server Watchdog Program
« on: August 26, 2008, 02:50:24 AM »
I'm not sure if it qualifies as an add-on or not but this seemed like the place to put it.

I do intend to include all of those features into later versions, minus trying to find out what causes the crash. I've spent some time already looking for the cause of it But i haven't found anything. I don't know enough about how the game works to be able to diagnose anything very specific either way.

11
General Discussion / Re: v9 = forget you
« on: August 25, 2008, 02:55:28 PM »
If you were having problems with ram then you'd be noticing freezing in other applications as well. Not just Blockland.

12
Add-Ons / Re: Dedicated Server Watchdog Program
« on: August 25, 2008, 02:18:24 PM »
or go into admin menu and click change map[/obvious]
Indeed...

Otherwise the batch file will handle the loading for the dedicated server it looks like.

@ether:
If you edit your batch file to say... -
start blockland.exe -dedicated -map destruct

Then it will load the destruct map.

13
Help / Re: Port Forwarding problems.
« on: August 25, 2008, 01:34:58 PM »
You need to port forward on the modem as well. Verizon May however not allow you to host servers under the subscription you have.

14
Add-Ons / Re: Dedicated Server Watchdog Program
« on: August 25, 2008, 01:29:36 PM »
OK i have tried making a ded server but it doesnt work. How would i make one on destruct instead of bedroom? And also am i suppose to leave the new window that appears up?

You'll need to modify the server preferences.cs file to load a separate map. I haven't tested this, but you may also be able to simply modify the batch file and change the -bedroom switch to whatever map you want to load. And yes, you need to leave the window that it spawns open. It not only watches the program but will keep you informed on what's going on. At some point this will Log time and date, and give you an "uptime" and last crash data.

Status Update:
Currently the program isn't checking for when the program freezes. I had this happen yesterday and the watchdog program failed to reload the server until windows decided to end the task on its own, while it took about 30 minutes for windows to do this... it did eventually restart. I'm working on trying to find a way to monitor the process by either the PID or some kind of inline hook that would give the program a little more specific information about the process, so it can monitor it a bit better.

I was also doing some research on the mac compatibility and I have yet to find any comparable API to do what we need it to do. I'll keep looking but I haven't found much.

you dont need one, there is a SuperMacro program on the apple website that does a WAYY better job.

I searched for a little bit on google and the apple web page for this Program and was unable to find anything. I did find A macro tool named "AutoPilot", but it seems to have a pretty steep learning curve.

15
Add-Ons / Re: Dedicated Server Watchdog Program
« on: August 25, 2008, 10:46:31 AM »
well i like this too! it works well, i needed this ;)

Unfortunately I've only worked with Win32 API so far. I'll try to look into it though.

Pages: [1] 2 3 4 5