Jump to content
Official BF Editor Forums

I Totaly Dont Understand The Singleplayeditor


Kipiop1

Recommended Posts

  • Replies 77
  • Created
  • Last Reply

Top Posters In This Topic

Switch from 'Detail' to 'Color' in the render menu to display the map as usual.

An de map wit ''Work'' is nowhere to find.
This is not a map but a directory in the /navmesh folder. Inside the /work folder you will find a folder named after your map and inside it there's the navmesh working files.
And the green navmesh wont display.

If you already ran the navmesh process for your map and it finished successfully you should 'Toggle Draw AI' and then 'Toggle Draw Infantry/Vehicle navmesh' in the Render menu of the editor.

If it still won't display a navmesh something went wrong in the creation process. Check the editor log files in /bf2editor/logs to trace the error.

Link to comment
Share on other sites

' date='01 July 2010 - 06:45 AM' timestamp='1277963158' post='98987']

Switch from 'Detail' to 'Color' in the render menu to display the map as usual.

This is not a map but a directory in the /navmesh folder. Inside the /work folder you will find a folder named after your map and inside it there's the navmesh working files.

If you already ran the navmesh process for your map and it finished successfully you should 'Toggle Draw AI' and then 'Toggle Draw Infantry/Vehicle navmesh' in the Render menu of the editor.

If it still won't display a navmesh something went wrong in the creation process. Check the editor log files in /bf2editor/logs to trace the error.

When i go to object color mode, the field stays white

Yes i know its a folder, but i cant find it between my folders

And if i look at the logs, but i dont recognize de fault.

And when i Activate CreateNavmesh.bat he crashes when the level is loaded.

Maybe that is the error why he not displayed the ''Work'' Folder

(Sorry for my bad english, im dutch)

Edited by Kipiop1
Link to comment
Share on other sites

Please note that your map needs to be a fully working Conquest map before attempting to navmesh it. It has to load error free in the editor before you can start with making it a singleplayer map.

You surely found the singleplayer tutorials ?

http://bf2.e-plaza.de/

http://www.bfeditor.org/forums/index.php?showtopic=3809

Link to comment
Share on other sites

Both tutorials deal with creating the navmesh. Its true though that Kysterama shows the navmesh on the 2nd page of his tutorial but this is only to clarify the rules for positioning of Spawnpoints and ObjectSpawners. This can ( and should ) be done after the navmesh creation .

Its not a bad idea to use both tutorials in conjunction. Note that they use a slightly different approach for the core navmesh process but the result is the same.

Link to comment
Share on other sites

Start reading that tut please....

http://bf2.e-plaza.de/page2.htm

# Now you need to place the infantry and vehicle order positions for the SA. These specify where the bots will stop when they come to cap a flag. Always put the infantry one inside the strategic area radius. The vehicle one can be outside the radius if you want the bot to stop, exit the vehicle and come into the CP's radius on foot.

# So click on the 'Infantry' button - a box will say, 'click to place order position'. Click OK and then click on the spot you want it to place the Order Position.

Link to comment
Share on other sites

I still have no idea abou the exact error message. Please quote it and tell us about it.

Earlier i told you that the map has to load error-free in the editor before attempting to navmesh it. In addittion you mustn't use the 'ScatterSpawnPositions' in any Spawnpoint for soldiers. Switch this to 0 in all your SP/COOP spawnpoints. Failing to do so will crash the initial editor run and not generate a 'config.dat' in /work/<YourMap>/GTSData/meshes

Edited by mschoeldgen[Xww2]
Link to comment
Share on other sites

'De parameter is onjuist' - what ever that means. To me it looks as if you have some kind of UAC ( User Access Control ) or other resttrictions to create that directory. You have to allow the creation of folders for python and navmesh.exe ( BF2Editor needs it too ).

Search the manual of your operating system for 'access control' and switch it off resp. give the necessary permissions.

This is basic computer knowledge, btw. You should get familiar with these aspects before attemptting an advanced task like SP/COOP creation for Battlefield. It is a complex game and sometimes requires complex tasks.

Edited by mschoeldgen[Xww2]
Link to comment
Share on other sites

' date='14 July 2010 - 04:47 AM' timestamp='1279079264' post='99240']

'De parameter is onjuist' - what ever that means. To me it looks as if you have some kind of UAC ( User Access Control ) or other resttrictions to create that directory. You have to allow the creation of folders for python and navmesh.exe ( BF2Editor needs it too ).

Search the manual of your operating system for 'access control' and switch it off resp. give the necessary permissions.

This is basic computer knowledge, btw. You should get familiar with these aspects before attemptting an advanced task like SP/COOP creation for Battlefield. It is a complex game and sometimes requires complex tasks.

Yes i know i must give the program a permission to make folder.

But when give him permission, and say the mod and level, he just shuts down.

btw 'parameter is onjuist', is dutch for parameter is incorrect.

Thanks for the help so far.

Link to comment
Share on other sites

Luckily for you I'm Dutch and I know batch coding. B)

I opened up the CreateNavmesh.bat file in notepad and started searching.

First of all, an invalid parameter means a flaw in the batch coding; an executable is not executed correctly. All batch-related commands are files in windows\system32, and so executables differ between Operating Systems.

I checked the .bat file for errors.

I highlighted the possible errors:

@echo off
:start
cls
echo --------------------------------------
echo Battlefield 2 XPACK Navmesh Generation
echo (c)2005 Digital Illusions CE
echo Create a new NavMesh
echo --------------------------------------

REM make sure work dir exists
if not exist work [b]md[/b] work

set mod_name=
set level_name=

set /p mod_name=What is the mod name?:
set /p level_name=What is the level name?:

REM call python script
GenerateNavmeshLocal.py %mod_name% %level_name%

Further more, I experienced trouble with batch files when they keep blank lines in between code.

The main error here is the "md" code.

md means "Make Directory", but in later versions this was changed to "MkDir".

The only solution for you is editing the bat file and changing "md" to "MkDir".

Some extra information using my cmd command line:

Creates a directory.

MKDIR [drive:]path
MD [drive:]path

If Command Extensions are enabled MKDIR changes as follows:

MKDIR creates any intermediate directories in the path, if needed.
For example, assume \a does not exist then:

   mkdir \a\b\c\d

is the same as:

   mkdir \a
   chdir \a
   mkdir b
   chdir b
   mkdir c
   chdir c
   mkdir d

which is what you would have to type if extensions were disabled.

Ow and btw:

I can't even use it, because .py files open in notepad by default. :P

EDIT (important)

I checked the log-display of your screenshot, and it seems either an error in the python script or in the navmesh.exe.

I'm afraid you can't fix that, but you can fix it windows-related.

Check if the "md.exe" file exists in "windows\system32", if not you should try to get if off the web. ;)

Edited by bergerkiller
Link to comment
Share on other sites

I can't even use it, because .py files open in notepad by default.

Thats an easy adjustment in your Win OS. Rightclick any *.py file and select 'Open with...' -> 'Choose Program'. Select python.exe from the list of programs or browse to it. Check the 'Always use the selected program to open this kind of file' and press 'OK'.

Note that this is mandatory to make the navmesh scripts work - and its mentioned in my navmesh tutorial.

Again, this is computer basics :P

Link to comment
Share on other sites

Mmh that's weird, when I search for "md.exe" it gives me information about a virus. I don't have "md.exe" either, so it must be some sort of weird error between the communication between the app (NavMesh.exe) and your OS.

Since the commands used are not independent files (anymore), I can only think of doing either two things:

- Run the NavMesh.exe in xp compatibiliy mode.

- Manually make the folders when it hangs. (first one 'bf2\levels\Test_Map\GtsData\Output')

Link to comment
Share on other sites

Does the directory exists on which the program hangs?

Could be the program doesn't get a successfull "made directory" message if the directory already exists. Then it could hang also.

Link to comment
Share on other sites

Does the directory exists on which the program hangs?

Could be the program doesn't get a successfull "made directory" message if the directory already exists. Then it could hang also.

no also not.

i Think batch. just blocks to run in administrator

Link to comment
Share on other sites

Mmmh yeah if cmd.exe is disabled/lacks rights then some functions could fail to work. :(

The only problem here is "what checker does the program use?".

It could be either of the following:

do while not directory.exists *path*

make.directory *path*

loop

do while make.directory *path* <> successfull

loop

I think it uses the second system, because making a directory manually didn't work.

It always has an error: You make a directory then it fails because it already exists, you don't make the directory and it fails to make one. It's a very annoying error in the program...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

Announcements




×
×
  • Create New...