Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

Nickster206

Fiddling about in the code. Need help!

Recommended Posts

Nickster206    28

Hey. I've been messing around in the game's code for a while now (I'm sort of a beginner modder) and I've stumbled across something. I can't find where to change what you can find in the security dispatch safes.

 

I know how to mess about with guards, items, programs, what items monst3r sells, what you can buy in nanofabs and server farms, etc... but I just can't seem to find the file for the security dispatch item loadout.

 

 

The point is...

Does anyone know what file determines the items you find in the security dispatch lootable boxes?

Share this post


Link to post
Share on other sites
HumanKirby    60

I do not know where it is, but most things can be found by compining some searching with dnGrep (http://dngrep.github.io/)

1. extract you scripts.zip

2. think which keyword could be in there (I think the Scanner can only be found in SD, so find out whar the scanner id is)

3. search this keyword with dnGrep

Share this post


Link to post
Share on other sites
Nickster206    28

So I tried searching for both of the dispatch-exclusive items:

 

The Wireless Scanner - item_wireless_scanner_1

 

The Prototype Chip - item_prototype_drive

 

and other key words such as security, dispatch, wireless, scanner, prototype, drive, safe, etc.... No results in terms of locating the security dispatch. Any other suggestions?

Share this post


Link to post
Share on other sites
Shirsh    129

It was mentioned by someone at forums here (can't remember who was that, sorry): it takes items that have floorWeight = 3 (maybe bigger too) in itemdefs.lua

Share this post


Link to post
Share on other sites
Cyberboy2000    660

Yeah Shirsh is right. Items with floorWeight 3 or higher are automatically considered for security dispatches. Be careful though as changing these will also affect their spawn rate at stores. The closer the floorWeight is to the current day the more likely it is to spawn(so on day one tier one items are most likely to spawn while on day three tier three items are most common)

Share this post


Link to post
Share on other sites
Shirsh    129

 Be careful though as changing these will also affect their spawn rate at stores.

List of items for stores in scripts\sim\units\store.lua that's reason why prototype chip and some other items (wireless scanner, microslam apparatus) never shows in nanofabs.

If it needed to spawn one of store items without changing its "store day " it's easy to make copy, with same descriptions icons etc

Share this post


Link to post
Share on other sites
Shirsh    129

What's a problem? Just make two new items then, one with floorWeight = 3 for Dispatch and one for stores with floorweight =1 or 2 if you need it for some cheaty reason (or not too cheaty, I'd prefer to find Volt Disruptor I instead of III I guess).

Share this post


Link to post
Share on other sites
Cyberboy2000    660

It depends on what you are trying to do. He could do it like you said, but what if he wants an item with floorweight 3 in stores but that doesn't appear in security dispatches? It's not a big deal, but it's something worth paying attention to.

Share this post


Link to post
Share on other sites
Nickster206    28

I wanted something like cyberboy said, but the closest thing I could do was on the items I didn't want in security dispatches that previously had floorweight 3 I just erased the floorweight and replaced it with soldafter 48.

Share this post


Link to post
Share on other sites