Shadowrun: Hong Kong - Extended Edition

Shadowrun: Hong Kong - Extended Edition

Shadowrun: Hong Kong Steam Workshop
Using the Shadowrun: Hong Kong Level Editor, you can expand your Shadowrun expereince with new missions, stories, characters, and more! Share your work and your experience here on the Steam Workshop.
了解更多
Honzou 1 2015 年 11 月 13 日 上午 7:46
Losing my patience trying to fix the Remington Roomsweeper...
This last few days I'he been trying to fix the pistol Remington Roomsweeper by trying to change some animations and abilities to fit it's description of being a shot in the package of a pistol.

My problem is that I tried a simple swapping of "DC abilities" to shotgun while keeping the requirements of pistol, but the other shotgun abilities appear but can't be used. I tried adding points to the test character on their shotgun score, but no dice.

Kinda hoping to get a hand here cause I'm kinda at my wit's end and the other solution I can think of is making custom skills that are specifically tied to the gun but I don't know how to do that not how to eliminate the skills that keep popping out.

Any help is welcomed and as soon as I get home I'll add the code to thread.
< >
正在显示第 1 - 7 条,共 7 条留言
cirion 2 2015 年 11 月 13 日 上午 9:10 
Yeah, post your code here. Are you just editing the .item file, or the .mode and/or .ab?

There might be problems if your pistol's abilities are using shotgun fxrep in the linked .ab files. If that's the case, you could try cloning the shotgun .ab files, and updating the FX (e.g. actionFxName) to use the Pistol versions instead, while keeping the rest of the ability the same. You might also need/want to update the prereqStrings to make sure they're valid for your weapon.
Honzou 1 2015 年 11 月 13 日 上午 10:53 
http://pastebin.com/4gf5fyxv

So far I haven't touched the abilities yet, unfortunately I really don't know where to start with that cause I'm not sure how to connect abilities to the gun specifically, and I don't want to run the risk of making every pistol suddenly be able to turn into shotguns (granted the fear is absurd cause I'm tweaking the weapon in the my gunrange module).

Also at the moment I'm using text file on my gun range module since I don't want to mess the main campgain with buggy weapons.
cirion 2 2015 年 11 月 13 日 上午 11:42 
Gotcha. Unfortunately there isn't much documentation or wiki info out there yet, but I recommend checking out the following (in the Hong Kong source):
/data/modes/dc single (shotgun).mode.txt
/data/abilities/shoot (shotgun burst).ab.txt

This line in your .item file links the gun to the mode:
abilityModes: "DC Single (Shotgun)"

The editor will then read:
/data/modes/dc single (shotgun).mode.txt

The mode file includes multiple lines that link the mode to abilities:
abilities: "Shoot (Shotgun Single)"
abilities: "Shoot (Shotgun Wide)"

That causes the editor to read:
/data/abilities/shoot (shotgun single).ab.txt
/data/abilities/shoot (shotgun wide).ab.txt

Those abilities have the all of the actual data needed for attacks: how many bullets they take, what the range is, what animations to use, etc.

I suspect that you're having trouble because you're trying to use shotgun abilities on a pistol item. You might need to make a new mode file (like data/modes/dc single (roomsweeper).modes.txt), and link that to new ability files (like data/abilities/shoot (roomsweeper single).ab.txt). Try linking a single custom ability first to see if it works, then add more.
Honzou 1 2015 年 11 月 13 日 下午 1:00 
File not Found: /data/modes/DC Single (roomsweeper).mode, in
File contents validation failed for: C:/Users/Honzou/Documents/Shadowrun Hong Kong/ContentPacks/Honzou's Gun range/data/items/remington roomsweeper.item.txt

Text-to-Binary Validation failed for: C:/Users/Honzou/Documents/Shadowrun Hong Kong/ContentPacks/Honzou's Gun range/data/items/remington roomsweeper.item.txt

Thanks for helping out with this mate. At the moment I'm having this issue. Pretty sure it's a simple naming issue but I can't seem to get it to work.

I simply copied the shotgun mode folder (made the proper abilities and Modes folders) and just renamed it to (roomsweeper).mode.txt and took the shoot (roomsweeper single).ab.txt placed it in the proper folders. and the top error line is what I get.
cirion 2 2015 年 11 月 13 日 下午 2:09 
I'm not sure what you mean by "shotgun mode folder", but you just need a single mode folder that holds any mode files you have. The file hierarchy in your content pack should look something like:

/data
/data/abilities
/data/abilities/shoot (roomsweeper single).ab.txt
/data/items
/data/items/remington roomsweeper.item.txt
/data/modes
/data/modes/dc single (roomsweeper).mode.txt

I'm not sure if case sensitivity matters, but to be consistent I always name files with all lower-case.

Make sure to update the IDs inside your copied files to match the new name of the file. For example, the first line in your .ab.txt file should be something like:
id: "Shoot (Roomsweeper Single)"
instead of:
id: "Shoot (Shotgun Single)"

Honzou 1 2015 年 11 月 13 日 下午 2:59 
Oh thank God it finally worked mate.

I just made sure the ID and save .txt were all lower case, then went to the Remington and made sure it said "dc single (roomsweeper)"

And now it worked. Thanks for having patience with me mate.
Banjo Oz 8 2015 年 11 月 15 日 下午 10:33 
(continuing from the other thread)

How did you go converting it to a bytes file? To do so, you can just select 'Publish Content Pack to' in the editor, save the zip file wherever you want, then unpack it to find the bytes version of your item.txt file inside.

Now, if you want to put your new gun version in the HK campaign, you have two choices as I see it:

1) Backup the old "pi 2 remington roomsweeper.item.bytes" file in your "Shadowrun Hong Kong\ContentPacks\HongKong\data\items" game folder, then replace it with your new one.

2) Create a new small mod that 'duplicates' the Hong Kong campaign but uses the original as a dependency (so you don't need copies of all the files, just the "data\stories\story.story" file), and place your new version of the Roomsweeper in that mods' "data\items". You will need to start a new game for that way to work, but it means not having to overwrite any files.

If you need help with option 2 (since it's harder to explain than to actually do, IMO), check out my mods on the Shadowrun Hong Kong Nexus[www.nexusmods.com] (Slap Patch and Old School) to see how I did something similar, or drop me a line privately and I'll help you do it.
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50