Loading [MathJax]/extensions/Safe.js

Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: WIP - Add objects to maps independent of mission file  (Read 4856 times)

0 Members and 1 Guest are viewing this topic.

marcost

  • Modder
  • member
  • Offline Offline
  • Posts: 1088
  • Keep calm and run away
WIP - Add objects to maps independent of mission file
« on: November 05, 2017, 12:18:14 PM »

Hi all,

Built in 4.12. Thanks to Mike for the moddable mission.class.

This mod allows objects (stationary and moving) to be loaded from files other than the mission file. There are 1) global objects which appear in all maps and 2) map-specific objects.

These are the two new files that load the objects:

load_world_objects.ini Any NStationary object in this file will be loaded into ALL missions, regardless of map. Suggested use: load objects that can be placed anywhere on a map, like CY6's dynamic weather mod. The file goes in the main   maps/   folder.


load_map_objects.ini
Any NStationary or Chiefs objects placed in here will load into all missions that use this map. Suggested use: Populate the map with trains, convoys, ships etc as eye-candy for immersion. The file goes in   maps/the_map_you_want_to_populate     e.g.   maps/CAN_Channel

I have included example files for the CAN_Channel map. Load a mission that flies around the Lympne/Folkstone/Dover area to see the objects going about their business.

If you have the dynamic weather mod installed in your system, this will also be active as it is loaded by the global file.

More detailed instructions to follow if anyone is interested!

https://www.mediafire.com/file/id8b9yfcrm1o1rz/Populate%20map.rar

Regards,

M








Logged

western0221

  • Modder
  • member
  • Offline Offline
  • Posts: 6790
  • Live in Japan
    • IL-2 itaki blog
Re: WIP - Add objects to maps independent of mission file
« Reply #1 on: November 05, 2017, 12:24:49 PM »

WoW !?

Is this mod enabling my animated Windsock , Flag Stationary objects or Light house Stationary objects set on the maps from the first map releasing ?

https://www.sas1946.com/main/index.php/topic,44031.0.html

https://www.sas1946.com/main/index.php/topic,44288.0.html
Logged

carsmaster

  • Modder
  • member
  • Offline Offline
  • Posts: 753
Re: WIP - Add objects to maps independent of mission file
« Reply #2 on: November 05, 2017, 12:33:18 PM »

More detailed instructions to follow if anyone is interested!

Very good !
Yes, we need detailed instructions.
Thank you.
Logged

Gubi

  • Flying Ass Clown #34
  • Modder
  • member
  • Offline Offline
  • Posts: 1276
  • RIP
Re: WIP - Add objects to maps independent of mission file
« Reply #3 on: November 05, 2017, 12:36:45 PM »

Huh?  Whuuuut?
Logged
I am a moron.

marcost

  • Modder
  • member
  • Offline Offline
  • Posts: 1088
  • Keep calm and run away
Re: WIP - Add objects to maps independent of mission file
« Reply #4 on: November 05, 2017, 02:05:45 PM »

Please tell me if you have tested. Does it work for you?

How to make your own:

1)    Open a map in fmb and add stationary objects where you want them
2)    Add moving vehicles, convoys or ships and give them routes to follow
3)    Save as a mission
4)    Exit game and open the mission .mis file. Copy the NStationary section and the Chiefs and their waypoints sections
5)    Paste these into a blank .txt file
6)    Renumber the objects and chiefs to avoid conflicts with any objects that are already in a mission file that you might play e.g.   I put 9999 in front of all object numbers. Don't forget to also change the numbers at the top of each chief route list!
7)    Save the .txt file and rename to load_map_objects.ini. Put this file in the folder for the map  e.g. #SAS/maps/CAN_Channel

All your objects, stationary and moving, should now appear in any mission on this map, along with any objects that the mission-maker added

Look at my sample files to check path and correct format of .ini file

Important - make sure you set the "side" correctly otherwise your new objects will shoot at eachother. I recommend side 0 not 1 or 2 (1 is allied 2 is axis iirc). Side 0 makes them neutral.

You could of course copy all the objects from an existing mission or campaign where the mission builder has taken time to populate the map! Remember  re-number them with a really high number to avoid conflicts. If you load the mission they came from, you will probably get two objects spawning in tbe same place and they will explode!


For the global mod, follow the same procedure but only use this for objects that can be placed anywhere. I was thinking of the cy6 command and control mods here.

Let me know if it works for you!


Disclaimer - I cannot guarantee that the trains running in Southern England are to the exact 1940's timetable  ;)
Logged

marcost

  • Modder
  • member
  • Offline Offline
  • Posts: 1088
  • Keep calm and run away
Re: WIP - Add objects to maps independent of mission file
« Reply #5 on: November 05, 2017, 02:10:39 PM »

WoW !?

Is this mod enabling my animated Windsock , Flag Stationary objects or Light house Stationary objects set on the maps from the first map releasing ?

https://www.sas1946.com/main/index.php/topic,44031.0.html

https://www.sas1946.com/main/index.php/topic,44288.0.html

Hi Western

I think so if they are NStationary objects. Effectively you can add these items to the map without having to edit the map itself

Regards

Martin
Logged

marcost

  • Modder
  • member
  • Offline Offline
  • Posts: 1088
  • Keep calm and run away
Re: WIP - Add objects to maps independent of mission file
« Reply #6 on: November 06, 2017, 01:12:49 PM »

For CAN_Channel map:

Moving windsock, moving flags and flare units added to all UK airfields

Replace the file in post 1 with this one

https://www.mediafire.com/file/z1g9c9wgg96k39z/CAN_Channel.rar

Regards,

M
Logged

Dimlee

  • member
  • Offline Offline
  • Posts: 1406
Re: WIP - Add objects to maps independent of mission file
« Reply #7 on: November 07, 2017, 11:11:20 AM »

Interesting.
One possible application: to create "own" version of a map just for special set of missions taking place in certain period of time. Or may be several versions?


Logged

Squashman

  • Modder
  • member
  • Offline Offline
  • Posts: 554
  • No, I am Spartacus
Re: WIP - Add objects to maps independent of mission file
« Reply #8 on: March 07, 2019, 05:56:02 AM »

Hi Marcost

I have only just found this mod, so please forgive my late question.
Inside the !Populate map folder, there are 26 files + the maps folder.
Where do the 26 files go?
e.g. Is the correct path IL2/#SAS/Mapmods/Populate map+26 files/maps/Map of choice + load_map_objects ?

Thanks in advance
Logged

marcost

  • Modder
  • member
  • Offline Offline
  • Posts: 1088
  • Keep calm and run away
Re: WIP - Add objects to maps independent of mission file
« Reply #9 on: March 12, 2019, 09:29:53 AM »

Hi,

The file structure needs to be the same as your mapmods folder, so !Populate map folder needs to be in #SAS not Mapmods such that the structure is #SAS/!populate maps/maps/the mapfolders with my ini's in them

If you want, you can just put the ini's in your existing map folders in your Mapmods. I just kept them as a separate mod for ease of removal

Regards
Logged

Squashman

  • Modder
  • member
  • Offline Offline
  • Posts: 554
  • No, I am Spartacus
Re: WIP - Add objects to maps independent of mission file
« Reply #10 on: March 12, 2019, 01:24:01 PM »

Many thanks Marcost - now I get it.

Great idea by the way  ;D
For someone like me who likes to recreate the Pacific naval actions of WWII this mod will be invaluable
Logged
Pages: [1]   Go Up
 

Page created in 0.033 seconds with 21 queries.