Problem with localhost:Fixed. Now just setting everything
- *Boinkage*!
- Private First Class
- Posts: 195
- Joined: Wed May 02, 2007 1:49 am
- Location: Behind you with a stealth flag.
Problem with localhost:Fixed. Now just setting everything
I'm having problems with using localhost. I can do random maps fine, but when I attempt to do the same with one of my levels I'm screwing around with, it won't connect and will either just freeze or say error connecting to server. Trying again with random map works perfectly.
Also, weirder still, when I try to load a different level other than the one I named testing, they don't show up. It only shows testing and random map as choices.
I'm running Windows XP with 2.0.8.
I can't figure it out
Also, weirder still, when I try to load a different level other than the one I named testing, they don't show up. It only shows testing and random map as choices.
I'm running Windows XP with 2.0.8.
I can't figure it out
Last edited by *Boinkage*! on Fri Aug 10, 2007 12:54 am, edited 1 time in total.
The Pen is Mightier Than the Sword.
Okay, you get a Bic, the orc gets a long sword.
He cuts the Bic in half.
Then he cuts you in half.
Oops, I meant quarters.
Okay, you get a Bic, the orc gets a long sword.
He cuts the Bic in half.
Then he cuts you in half.
Oops, I meant quarters.
- *Boinkage*!
- Private First Class
- Posts: 195
- Joined: Wed May 02, 2007 1:49 am
- Location: Behind you with a stealth flag.
-
- Private First Class
- Posts: 330
- Joined: Tue Feb 08, 2005 6:06 pm
- Location: Lancaster, PA
- Contact:
I mean open up the resulting map in a text editor like notepad, and have a look at it.I'm using BZEdit, and I have no clue what syntax is.
Ah, that didn't come out quite the way I meant it. I mean that you should go to a public server with a working map, save the map, and run the saved map on your localhost server.And what do you mean "elsewhere" on my localhost.
Looking at your first post again, are you starting bzfs from the command line with the -world option?
- *Boinkage*!
- Private First Class
- Posts: 195
- Joined: Wed May 02, 2007 1:49 am
- Location: Behind you with a stealth flag.
Well, I went over the world (turned into txt, right?). I found no errors. Everything was good. I changed it back to BZW format, but even when I removed everything else in the folder, I couldn't find it. It only had random map .
The Pen is Mightier Than the Sword.
Okay, you get a Bic, the orc gets a long sword.
He cuts the Bic in half.
Then he cuts you in half.
Oops, I meant quarters.
Okay, you get a Bic, the orc gets a long sword.
He cuts the Bic in half.
Then he cuts you in half.
Oops, I meant quarters.
- CannonBallGuy
- Private First Class
- Posts: 2083
- Joined: Wed Apr 12, 2006 1:31 am
- Contact:
Answer the other questions asked.
Merry Christmas!
"Look, if I don't buy booze for the kids, I don't get any incriminating pictures to show to their parents, my business goes down the sink, my girlfriend leaves me and the baby goes on ebay. So help me search..."
"go Play With Toys urself in a dark alley u donkey ******" - Lt-Kirby2007
-
- Private First Class
- Posts: 330
- Joined: Tue Feb 08, 2005 6:06 pm
- Location: Lancaster, PA
- Contact:
Especially that command line bit.
From your posts, I think you are a bit confused about how maps work. ALL maps come in the form of plain text. I don't care what you made it in. They might import images, but the base map is a big text file.
To start a server, you need to be opening a command prompt. (click start --> run and put the letters: cmd hit enter.)
I'm a bit fuzzy in Windows, but you need to input a command something like: If you have no clue what I'm talking about, do a search with your Internet search engine of choice on something like: "dos tutorial" or "windows command line tutorial" There's a base of knowledge that you need to have to even be able to run any sort of server other than a random map. It's not terribly difficult, but be prepared to spend the next week's evenings reading and practicing.
If you ARE clued in on how the command line bit works, you'll need to tell us what you're typing in.
From your posts, I think you are a bit confused about how maps work. ALL maps come in the form of plain text. I don't care what you made it in. They might import images, but the base map is a big text file.
To start a server, you need to be opening a command prompt. (click start --> run and put the letters: cmd hit enter.)
I'm a bit fuzzy in Windows, but you need to input a command something like:
Code: Select all
bzfs -world \path\to\map\file
If you ARE clued in on how the command line bit works, you'll need to tell us what you're typing in.
- *Boinkage*!
- Private First Class
- Posts: 195
- Joined: Wed May 02, 2007 1:49 am
- Location: Behind you with a stealth flag.
Ok, so I put that code in to the command prompt and it said exactly this:
I'm reading about the command line right now. What exactly do I need to know about on it? I'll check my directory is correct, and post later.
Code: Select all
'bzfs' is not a recognized as an internal or external command, operatable program or batch file.
The Pen is Mightier Than the Sword.
Okay, you get a Bic, the orc gets a long sword.
He cuts the Bic in half.
Then he cuts you in half.
Oops, I meant quarters.
Okay, you get a Bic, the orc gets a long sword.
He cuts the Bic in half.
Then he cuts you in half.
Oops, I meant quarters.
- CannonBallGuy
- Private First Class
- Posts: 2083
- Joined: Wed Apr 12, 2006 1:31 am
- Contact:
You would need to cd into the directory bzfs is in, or use the full path to it.
Merry Christmas!
"Look, if I don't buy booze for the kids, I don't get any incriminating pictures to show to their parents, my business goes down the sink, my girlfriend leaves me and the baby goes on ebay. So help me search..."
"go Play With Toys urself in a dark alley u donkey ******" - Lt-Kirby2007
-
- Private First Class
- Posts: 330
- Joined: Tue Feb 08, 2005 6:06 pm
- Location: Lancaster, PA
- Contact:
Sorry I can't tell you 'what exactly you need to know' there is a basic set of skills you'll need to get together to use it. Otherwise, you'll just end up aping some commands, and have no real clue what they mean. For starters, you should be able to navigate around your computer using your command line interface with ease, be able to modify text files, and understand what PATH is. (hint: the reason bzfs isn't recognized as a command is because it isn't in your path) Keep at it with the tutorials, you'll get it soon enough, and be better for it.
Oh, if you're really frustrated with the DOS command line interface that comes with Windows, have a look at Cygwin. The BASH shell blows DOS right out of the water IMHO.
Oh, if you're really frustrated with the DOS command line interface that comes with Windows, have a look at Cygwin. The BASH shell blows DOS right out of the water IMHO.
I think you might have a simple problem like the wrong port.
If you did not specifcly set a port in your config, make sure it is 5154 , also make sure you spell localhost correctly
If you did not specifcly set a port in your config, make sure it is 5154 , also make sure you spell localhost correctly
Make sure you get my new Map Editor!: http://my.bzflag.org/bb/viewtopic.php?p=115526#115526
-
- Private First Class
- Posts: 220
- Joined: Tue Jul 26, 2005 10:32 pm
- Location: Gainesville Florida
Make sure you have saved the file as a '.bzw' file. Without the extension bzflag will not list it. Also the command line that LongHair posted might not work in windows. It should be something like:
C:\Program Files\BZFlag2.0.8\bzfs .exe -world <path>
you should probably use the absolute path for the map file as well.
Like:
C:\path\to\world\file.bzw
C:\Program Files\BZFlag2.0.8\bzfs .exe -world <path>
you should probably use the absolute path for the map file as well.
Like:
C:\path\to\world\file.bzw
-
- Private First Class
- Posts: 34
- Joined: Tue Sep 28, 2004 9:22 pm
- Location: Toronto, Ontario, Canada
- Contact:
localhost vs 127.0.0.1
Try using 127.0.0.1 instead of localhost.
I vaguely remember some systems have problems resolving 'localhost' but it works with the IP.
HTH
I vaguely remember some systems have problems resolving 'localhost' but it works with the IP.
HTH
-
- Private First Class
- Posts: 220
- Joined: Tue Jul 26, 2005 10:32 pm
- Location: Gainesville Florida
yeah I still have to use windows at work. I'm not fond of that OS.Longhair wrote:Thanks, anomaly that looks more like the commands I remember from my Windows days.
Btw, 127.0.0.1 (the loopback address) is not always in the hosts file on Windows. Using the address directly instead of localhost will always work. Good point Thumper.
You can also put your map file in the My Bzflag Files folder. Then open the command prompt and type:
Hit enter.
That's the default path. If you installed Bzflag in another folder, just put the path to that folder. After you have done that, make sure you map file and BZFS are in the Bzflag2.0.8 folder. In the command prompt, type:Hit enter.
Open a Bzflag client. Type localhost for the server and 5154 for the port. If you are using a router, I think you have to use Port Forwarding (but I'm not sure). Join the map and you will be able to play on it. You won't have any admin perms. You have to use a config file and set a password if you want to.
Code: Select all
cd C:\Program Files\Bzflag2.0.8
That's the default path. If you installed Bzflag in another folder, just put the path to that folder. After you have done that, make sure you map file and BZFS are in the Bzflag2.0.8 folder. In the command prompt, type:
Code: Select all
bzfs.exe -world nameofyourmap.bzw
Open a Bzflag client. Type localhost for the server and 5154 for the port. If you are using a router, I think you have to use Port Forwarding (but I'm not sure). Join the map and you will be able to play on it. You won't have any admin perms. You have to use a config file and set a password if you want to.
-
- Private First Class
- Posts: 10
- Joined: Fri Jun 23, 2006 6:37 pm
- Location: 127.0.0.1
Put this command into AUTOEXEC.BAT and reboot:
This command looks for executables at startup. Then run:
No more having to run the blasted "cd" command when starting your server . Thank goodness for an old DOS 5.0 manual I had kicking around.
Oh, BTW, DO NOT close the DOS window down! It looks like it might be doing nada, but that window is what keeps your server running.
Code: Select all
set path C:\Program Files\BZFlag2.0.8
Code: Select all
bzfs.exe -world nameofyourmap.bzw
Oh, BTW, DO NOT close the DOS window down! It looks like it might be doing nada, but that window is what keeps your server running.
whoa there!,,, don't do that, you'll replace the previous path var, and that can cause problems on boot... instead make it...urbanracer34 wrote:Put this command into AUTOEXEC.BAT and reboot:Code: Select all
set path C:\Program Files\BZFlag2.0.8
Code: Select all
set path %PATH%; C:\Program Files\BZFlag2.0.8
gazz: A bullet may have your name on it, but shrapnel is addressed "to whom it may concern".
http://bash.org/?785529
http://bash.org/?785529
-
- Private First Class
- Posts: 5
- Joined: Tue Sep 21, 2004 12:55 am
So files downloaded the end in .map need to be renamed to .bzw ?anomaly wrote:Make sure you have saved the file as a '.bzw' file. Without the extension bzflag will not list it. Also the command line that LongHair posted might not work in windows. It should be something like:
C:\Program Files\BZFlag2.0.8\bzfs .exe -world <path>
you should probably use the absolute path for the map file as well.
Like:
C:\path\to\world\file.bzw
IF so why even name them .map and if not how do you get them to run ?
'THanks
Mark
When running servers on windows, i find the easiest way to do it is to just open up notepad, type in my "bzfs -world /path/to/map.bzw", press enter, then type "pause" (useful for when you come up with errors), then save it in your bzflag 2.0.8 directory as server.bat or something like that. Batch files make life easier, i dont have to retype code for everything and if i need to change the map i can just edit the file.
- *Boinkage*!
- Private First Class
- Posts: 195
- Joined: Wed May 02, 2007 1:49 am
- Location: Behind you with a stealth flag.
Thanks for all the help.
saber
EDIT AGAIN!: Im so stupid...Forgot to put the file in BZFlag2.0.8
saber
EDIT AGAIN!: Im so stupid...Forgot to put the file in BZFlag2.0.8
Last edited by *Boinkage*! on Thu Aug 09, 2007 8:37 pm, edited 1 time in total.
The Pen is Mightier Than the Sword.
Okay, you get a Bic, the orc gets a long sword.
He cuts the Bic in half.
Then he cuts you in half.
Oops, I meant quarters.
Okay, you get a Bic, the orc gets a long sword.
He cuts the Bic in half.
Then he cuts you in half.
Oops, I meant quarters.
- CannonBallGuy
- Private First Class
- Posts: 2083
- Joined: Wed Apr 12, 2006 1:31 am
- Contact:
What else did it say on the "bad arguement" line?
Merry Christmas!
"Look, if I don't buy booze for the kids, I don't get any incriminating pictures to show to their parents, my business goes down the sink, my girlfriend leaves me and the baby goes on ebay. So help me search..."
"go Play With Toys urself in a dark alley u donkey ******" - Lt-Kirby2007