Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » Adding Fatima and Dmitri on custom map.. (SOLVED:)
Adding Fatima and Dmitri on custom map..[message #366121] Tue, 28 May 2024 19:37 Go to next message
Marcus is currently offline Marcus

 
Messages:119
Registered:November 2014
(Yes, I start feeling stoopid..)


I added both characters to my map set on forced spawn:
Fatima did not spawn
Dmitri spawned as a regular rebel I could issue orders to.

Apart from this, I need to find the files needed to make them move through maps. I looked into both 1.12 and 1.13 data folders, I found a number of npc and EDT files. When opened they are basically empty.
I also found a LUA gameinit script giving an example about instructions, it was about Fatima. Long story short, what am I supposed to do to handle characters/quests?

A single bright note: I linked the rebel overground map/basement and when I go upstairs mercs spawn on the correct tiles of the "bigmap". I hope this bodes well, even if I'm not totally sure..

Anyways, I need to make a couple of quest to see if I can go on with bigmaps or not. I'll have to make them anyway.

[Updated on: Sun, 02 June 2024 22:02]

Report message to a moderator

Sergeant
Re: Adding Fatima and Dmitri on custom map..[message #366122 is a reply to message #366121] Tue, 28 May 2024 21:02 Go to previous messageGo to next message
Kitty

 
Messages:492
Registered:October 2017
Location: Germany
Fatima:

In mapeditor,

- is she set as "priority existance" (set checkmark at "!" for her)
- look at her "schedules", set the first one to "Stay in Sector" (iirc, if not, she will disapear at some time, i.e. only be arround from 9 to 21 o'clock)
- her "civgroup" should be set as "Rebels" (same for all other Rebels)
- make sure to set her profile ID (101)
- set her as "stationary" to avoid her strolling arround

She has ID 101 in MercProfiles.xml
That same number is used for her .npc and .edt files

Many of them are stored in .slf-files, those are part of the original JA2 (= it comes with your version of JA2: CD, Steam, GoG, ... and can be find in "Data")
You need to unpack those .slf to get access, in this case the one named "NpcData.slf"
I use a tool called DragonUnpacker for this purpose, but there are probably other tools that can do it as well (just google something like "open .slf files" and see what you can find)

Next, you need an NPCEditor (I use "NPCEdit" from forum download section) to open those .npc-files
In case of Fatima, that's 101.npc

And to understand what you are seeing in those records, I suggest to read the Info gathered by Scorpion (see link below)
It's a good overview about what is what (NPC-Facts, NPC-Actions, etc)

Mind you, those Facts and Actions are hardcoded, the npc-scripts are just pointing to them (or set them true/false, etc)
Other things, like reactions to interactions (is there a difference to be approached friednly, threatening, etc ?) or where to move when are often free to alter, but the overall consequences should be kept in mind

NPC Scripts can surely be a tad mindboggling, especially the more outfleshed ones (like Fatima)
(she's taking Pacos condition into account, multiple checks at which GridNo she is when, she passes conversation to Dimitri and gets passed conversation from Carlos, she and paco switch sector and she teleports to basement, etc - in short, a lot is going on)

NPC scripting info (by Scorpion)

The examples in GameInit.lua are just that, it's just a coincidence the author used Fatima as example

-
Quests:

I guess there is no general answer to how to handle quests

Most part of quests is hardcoded to beginn with, but for modding purposes existing ones can be widely altered
A prime example is a mod like UC-1.13 (UrbanChaos). It has it's own unique story and quest and that's done by editing only external files (like .npc, .edt, voice-files, lua, etc) and no code change at all (there are many mods doing that, UC is just one of the most prominent and still running with latest 1.13)

You can set quests to start/end with .npc-files, but a lot could also be done with .lua (i.e., set quest to be finished if entering a sector or opening a door, hacking a computer or if a self-invented modder-lua-fact becomes true, etc) (maybe take a look into Overhead and Strateticmap for starters to get an idea what lua might can do)
-

Anyway, I highly recommend to read Scorpions NPC Script Info to get the idea

[Updated on: Tue, 28 May 2024 21:10]




How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)

Report message to a moderator

Master Sergeant
Re: Adding Fatima and Dmitri on custom map..[message #366123 is a reply to message #366122] Tue, 28 May 2024 21:31 Go to previous message
Marcus is currently offline Marcus

 
Messages:119
Registered:November 2014
Ok, you just lifted some weight from my stomach, the last few days have been frustrating.
I see it's a ton of work, but doable. Time to fire up Dragon Unpacker.
Thanks a ton kitty!

Side notes:
Currently AIMNAS is a mix of bigmaps and vanilla 160x160 and it works silksmooth. This can circumvent the bigmap issue with mercs spawning outside the map. If quests can work with 200x200 that wil be the standard size.
I got in touch with The Scorpion. Currently he's busy with Real Life, but he agreed in giving advice about the MovementsCosts issue.


EDIT:
Solved. You must set an NPC starting sector in MercProfiles.xml

[Updated on: Sun, 02 June 2024 22:02]

Report message to a moderator

Sergeant
Previous Topic: Looking for a russian site link here on the forums..
Next Topic: I can't get MovementCosts.xml to work..
Goto Forum:
  


Current Time: Mon Feb 10 18:48:56 GMT+2 2025

Total time taken to generate the page: 0.02674 seconds