Author Topic: Spawn Point creation on Custom Fields  (Read 2054 times)

Offline Denholm

  • Plutonium Member
  • *******
  • Posts: 9667
      • No. 603 Squadron
Spawn Point creation on Custom Fields
« Reply #15 on: October 20, 2006, 11:59:53 AM »
Heck, I would preffer "spawn" to work.
Get your Daily Dose of Flame!
FlameThink.com
No. 603 Squadron... Visit us on the web, if you dare.

Drug addicts are always disappointed after eating Pot Pies.

Offline soda72

  • Platinum Member
  • ******
  • Posts: 5201
Spawn Point creation on Custom Fields
« Reply #16 on: October 20, 2006, 02:06:29 PM »
Quote
Originally posted by BlauK
Did you create a group of "all the spawns" or "all the spawns AND the base"?

I would suggest the latter, but I am not sure if it would solve the problem.


I was tryin it with the spawns and base...


When I do an add group shape the entry points go all over the place...



I'll try it with out the base....

Offline soda72

  • Platinum Member
  • ******
  • Posts: 5201
Spawn Point creation on Custom Fields
« Reply #17 on: October 20, 2006, 02:07:00 PM »
Quote
Originally posted by Denholm
Heck, I would preffer "spawn" to work.


Me too....

Offline Denholm

  • Plutonium Member
  • *******
  • Posts: 9667
      • No. 603 Squadron
Spawn Point creation on Custom Fields
« Reply #18 on: October 20, 2006, 02:21:43 PM »
Maybe we can go into the directories of the TE and pull out "entpnt".
Get your Daily Dose of Flame!
FlameThink.com
No. 603 Squadron... Visit us on the web, if you dare.

Drug addicts are always disappointed after eating Pot Pies.

Offline soda72

  • Platinum Member
  • ******
  • Posts: 5201
Spawn Point creation on Custom Fields
« Reply #19 on: October 20, 2006, 02:48:23 PM »
Well that's a little better...




Not quite aligned,  TE doesn't do a group move on the entpnts when they are all selected so each one has to be moved but the group rotate works on them...


The addspwn will save some time, since you dont have to worry about manually aligning the entry points individualy for each field, it will do this automaticly...
« Last Edit: October 20, 2006, 04:19:33 PM by soda72 »

Offline soda72

  • Platinum Member
  • ******
  • Posts: 5201
Spawn Point creation on Custom Fields
« Reply #20 on: October 20, 2006, 02:51:39 PM »
Quote
Originally posted by Denholm
Maybe we can go into the directories of the TE and pull out "entpnt".


I don't think the entpnt is a standard shape, it just being used as a reference, I'm not 100% certain..  But0 I tried some scenarios where I used spawn in the OE, created my field shape and hex edit the.shp file replacing 'spawn' with 'entpnt', but it didn't work...

:cry

Offline soda72

  • Platinum Member
  • ******
  • Posts: 5201
Spawn Point creation on Custom Fields
« Reply #21 on: October 22, 2006, 12:33:11 PM »
http://www.esnips.com/web/s0da72sBusinessFiles


Another update for the rotation..  The decimal value was being written to the .oba incorrectly.  This would only happen on spwn points that had a diretion less then 0.1

so if the direction is 0.0707 it would write out 707e-2, this has been corrected, so it writes the 0.0707 value instead of 707e-2.  

10001addspwn3.zip

Offline Denholm

  • Plutonium Member
  • *******
  • Posts: 9667
      • No. 603 Squadron
Spawn Point creation on Custom Fields
« Reply #22 on: October 23, 2006, 09:16:11 AM »
Soda, I'm pretty sure that "entpnt" re-directs to another shape, but when the game loads, notice how it loads "entpnt"? Take "ndisles" for example, my slow computer takes a moment to load, and I can tell you almost anything that loads before it finally enters the terrain. NDisles loads the object "entpnt", so it seems to me "entpnt" can not truly be a re-direct, and if it is, it sure is good at disguising itself!
Get your Daily Dose of Flame!
FlameThink.com
No. 603 Squadron... Visit us on the web, if you dare.

Drug addicts are always disappointed after eating Pot Pies.

Offline soda72

  • Platinum Member
  • ******
  • Posts: 5201
Spawn Point creation on Custom Fields
« Reply #23 on: October 23, 2006, 10:22:00 AM »
Quote
Originally posted by Denholm
Soda, I'm pretty sure that "entpnt" re-directs to another shape, but when the game loads, notice how it loads "entpnt"?


I didn't notice that before... hmmm.. maybe there still is a way...

:t

Offline Denholm

  • Plutonium Member
  • *******
  • Posts: 9667
      • No. 603 Squadron
Spawn Point creation on Custom Fields
« Reply #24 on: October 24, 2006, 06:50:51 PM »
Hey soda, I'm having a few problems with this new program you made.

I followed your steps of placing the "addspwn.exe" program in a blank directory. Placing the shapes in the userlib folder, placing the shapes on my tile and defining them as spawn points. Building my tile, placing it in my map's "texsrc" folder, placing the tile on my terrain, then placing the individual "spawn" shapes, the original tile I had just made in the OE, and the .oba file of my terrain in the blank directory with the "addspwn.exe" program.

I then ran the program and expected an interface to come up asking me for the name or location of these files, nothing except a quick pop-up of Command Prompt. I was looking for the .oba.out file, it's not there. So I ran a system search for it which turned up nothing.

Did the program perhaps overwrite the .oba file? Or did something run incorrectly?
Get your Daily Dose of Flame!
FlameThink.com
No. 603 Squadron... Visit us on the web, if you dare.

Drug addicts are always disappointed after eating Pot Pies.

Offline soda72

  • Platinum Member
  • ******
  • Posts: 5201
Spawn Point creation on Custom Fields
« Reply #25 on: October 31, 2006, 05:39:54 PM »
Quote
Originally posted by Denholm
Hey soda, I'm having a few problems with this new program you made.

I followed your steps of placing the "addspwn.exe" program in a blank directory. Placing the shapes in the userlib folder, placing the shapes on my tile and defining them as spawn points. Building my tile, placing it in my map's "texsrc" folder, placing the tile on my terrain, then placing the individual "spawn" shapes, the original tile I had just made in the OE, and the .oba file of my terrain in the blank directory with the "addspwn.exe" program.

I then ran the program and expected an interface to come up asking me for the name or location of these files, nothing except a quick pop-up of Command Prompt. I was looking for the .oba.out file, it's not there. So I ran a system search for it which turned up nothing.

Did the program perhaps overwrite the .oba file? Or did something run incorrectly?



Hey,

Sorry I was on vacation the last few days..   I'll take a look at this sometime tomorrow after I get caught up with work stuff...

Offline soda72

  • Platinum Member
  • ******
  • Posts: 5201
Spawn Point creation on Custom Fields
« Reply #26 on: November 01, 2006, 11:26:15 AM »
Quote

I then ran the program and expected an interface to come up asking me for the name or location of these files, nothing except a quick pop-up of Command Prompt


It's a console program, and does not have a user GUI interface.   This makes it easier for me to run it with batch(.bat) files for projects/maps I'm working on.   To run it open a dos window and go to the directory where the .exe is stored. Then type in the following at the dos prompt:
addspwn mytil.til myoba.oba...  




When it finishes you should see it write to the console output "New OBA file built successfully"





Quote
Originally posted by Denholm
Did the program perhaps overwrite the .oba file?


When the addspwn runs it creates a new .oba.out file.   The original .oba file is left alone(not modified).  

Quote
Originally posted by Denholm
Or did something run incorrectly?


If the .oba.out file was not created when the program finished then it encountered some kind of problem.

If you want post your .til and .oba file so I can take a look at them.

Offline Denholm

  • Plutonium Member
  • *******
  • Posts: 9667
      • No. 603 Squadron
Spawn Point creation on Custom Fields
« Reply #27 on: November 01, 2006, 12:03:30 PM »
Well, I'm not sure how you got that interface to pop-up. I know it's a console, yet when I ran "addspwn.exe" it did not show that console. It popped up a "MS-DOS" console for 0.450 seconds and then vanished. So, I'm not sure how to get the console to look the same as yours.:confused:
Get your Daily Dose of Flame!
FlameThink.com
No. 603 Squadron... Visit us on the web, if you dare.

Drug addicts are always disappointed after eating Pot Pies.

Offline soda72

  • Platinum Member
  • ******
  • Posts: 5201
Spawn Point creation on Custom Fields
« Reply #28 on: November 01, 2006, 12:28:09 PM »
Quote
Originally posted by Denholm
Well, I'm not sure how you got that interface to pop-up. I know it's a console, yet when I ran "addspwn.exe" it did not show that console. It popped up a "MS-DOS" console for 0.450 seconds and then vanished. So, I'm not sure how to get the console to look the same as yours.:confused:


That program is "File commander" and is not related to the addspwn program, not to many people know about it...  But I like using it rather than using windows explorer...

If yeah want to start addspwn from a windows dos console...

go to the start menu..



enter in cmd



it will the bring up the dos console window..  then go the directory where addspwn is located...


after running


hopefully this makes a little more sense...

Offline Denholm

  • Plutonium Member
  • *******
  • Posts: 9667
      • No. 603 Squadron
Spawn Point creation on Custom Fields
« Reply #29 on: November 02, 2006, 09:35:08 AM »
I have yet to still figure out how you got the location to be "K:\testdir"
Get your Daily Dose of Flame!
FlameThink.com
No. 603 Squadron... Visit us on the web, if you dare.

Drug addicts are always disappointed after eating Pot Pies.