Mountable Nanobots/Shield Batteries
-
So many problems, so little time…
Today’s problem involves creating a new nanobot and battery. I copied the original lines from the first bot/battery (ge_s_repair_01 / ge_s_battery_01) and renamed it to ge_s_repair_02 / ge_s_battery_02. I then adjusted the repair rate and now they are mountable. Anyone know the reason behind this?
Also, If anyone knows where the map infocards are kept, I could also use that info. That was yesterdays problem that I have been putting off.
-
Bats & bots are hardcoded, tested via the 01 nickname hashes. Adding more is problematic, since there’s no way to choose. It’d probably have to be exclusive (somehow), so you have 01 or 02, but not both. Which is why I haven’t done it before now.
Not sure what you mean by “map infocards”. You could try searching my plain-text FRC resources for what you’re after. Or perhaps you want DATA\INTERFACE\infocardmap.ini, which maps a base’s stats to it’s description, required to show what’s for sale.
-
Is there any way to modify the hardcoding to accept the second set?
By the map infocards, I meant when you look at a bases discription on the map, it gives you a brief description of the base.
An example (using FLEd-ids): Battleship Norfolk
<rdl><push><text>The Battleship</text> <tra data=“2” mask=“2” def=“-3”><text>Norfolk</text> <tra data=“0” mask=“2” def=“-1”><text>anchors the Cambridge Line of electronic surveillance satellites to suppress the chronic pirate and smuggling activity in the system. Food transports, pharmaceutical shipments, and the local Trade Lanes are enticing targets for pirates who strike across the Line before retreating to the safety of the Barrier ice clouds.</text><para><para></para></para></tra></tra></push></rdl>
I want to know if it is the /UNIVERSE/(system)/(system.ini) that holds the place for placing the infocard data
-
serris wrote:
By the map infocards, I meant when you look at a bases discription on the map, it gives you a brief description of the base.An example (using FLEd-ids): Battleship Norfolk
<rdl><push><text>The Battleship</text> <tra data=“2” mask=“2” def=“-3”><text>Norfolk</text> <tra data=“0” mask=“2” def=“-1”><text>anchors the Cambridge Line of electronic surveillance satellites to suppress the chronic pirate and smuggling activity in the system. Food transports, pharmaceutical shipments, and the local Trade Lanes are enticing targets for pirates who strike across the Line before retreating to the safety of the Barrier ice clouds.</text><para><para></para></para></tra></tra></push></rdl>
I want to know if it is the /UNIVERSE/(system)/(system.ini) that holds the place for placing the infocard data
Yes, system infocards are selected in the system.ini
In the case of you Norfolk entry as below
[Object]
nickname = Br03_03
ids_name = 196673
pos = 37986, 0, 8129
rotate = 0, -60, 0
archetype = b_battleship
ids_info = 65559
base = Br03_03_Base
dock_with = Br03_03_Base
reputation = br_n_grp
behavior = NOTHING
voice = atc_leg_f01
space_costume = br_kaitlyn_head, br_female_elite_body
difficulty_level = 7
loadout = br_battleship_base01
pilot = pilot_solar_hardthe second entry comes from the \interface\infocardmap.ini like this
Map = 65559, 65560
65560 is the more detailed “visited” infocard
-
Sweet. Thanks for the help.
-
serris wrote:
Is there any way to modify the hardcoding to accept the second set?Here’s a partial solution, which should still get the job done. Have a look at Multirepair.cpp for details.
-
Works well. Thanks. Just curious, but is it possible to have unlimited Nanobots/Shield Batteries?
-
Yes, with a bit of extra mucking about, which I wasn’t really bothered doing. You can patch in a few more: 001299, 5b = last digit of the bat/bot nickname.
-
adoxa wrote:
Yes, with a bit of extra mucking about, which I wasn’t really bothered doing. You can patch in a few more: 001299, 5b = last digit of the bat/bot nickname.[ShieldBattery]
nickname = ge_s_battery_02
ids_name = 263748
ids_info = 264748
volume = 0.000000
mass = 10
hit_pts = 5000
loot_appearance = ge_s_battery_01_loot
units_per_container = 15
lootable = falseI put 5b so it reads
[ShieldBattery]
nickname = ge_s_battery_5b
ids_name = 263748
ids_info = 264748
volume = 0.000000
mass = 10
hit_pts = 5000
loot_appearance = ge_s_battery_01_loot
units_per_container = 15
lootable = falseright? Where do I put the 001299
-
Assuming you’re not taking the piss, open Multirepair.dll in a hex editor, go to hexadecimal offset 1299 (it’s probably hex by default, but you may need to use 0x1299), change the byte.
-
You can see the number of Nanobots and Shield Batteries only if ge_s_repair_01 and ge_s_battery_01 on NPC.
Would it be possible to display the numbers for 02?
-
Nine years ago I would have had a go at it; now, not so much. Sorry.