Editing
Textdata rankingitem.txt
From Raynegard Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
'''<code>rankingitem.txt</code>''' (3,190 bytes, part of [[BIN textdata]]) lists the weekly ranking-shop reward items. == Format == 117 rows = 13 weeks Γ 9 slots. Both consumers index it as <code>line = (week β 1) Γ 9 + slot</code> (week from the in-game clock; slot from the ranking panel button / the NPC's subtype) and <code>sscanf</code> only <code>%*d,%*d,%d,%d</code>: {| class="wikitable" ! col !! meaning |- | 1 || week (1β13) β the row's own coordinate, not read directly |- | 2 || slot (0β8) β likewise positional |- | 3 || '''reward item dat file id''' |- | 4 || '''reward item entry index''' |- | 5β10 || not read by either client consumer (slots 6β8 stash extra <code>dat,entry</code> pairs in cols 5β8, unused here; likely legacy/server-side) |} == NPC subtype β slot table == Each ranking-shop NPC is bound to a slot via a hardcoded subtypeβslot table at <code>0x4e2f30</code> (11 <code>byte(subtype), byte(slot)</code> pairs): {| class="wikitable" ! NPC subtype !! slot !! !! NPC subtype !! slot |- | 1 || 0 || || 56 || 4 |- | 11 || 1 || || 66 || 5 |- | 24 || 1 || || 76 || 5 |- | 30 || 2 || || 82 || 5 |- | 40 || 2 || || 86 || 5 |- | 46 || 3 || || || |} So 11 NPC subtypes map to 6 slots (0β5), exactly the 6 item rows the panel exposes; the <code>dat=entry=0</code> rows (slots 6β8) are unreachable/control rows. Full lookup: <code>item = rankingitem[(weekβ1)*9 + slotTable[npc.subtype]]</code>, cols 3/4. == Loading (Ghidra) == String address <code>004defc8</code>. Consumers: <code>cpt_panel_ranking_widget_OnClick @ 004295d2</code>; <code>State_NpcRankingShop_Tick @ 0046943f</code>. <code>State_NpcRankingShop_Tick</code> reads the subtype table with <code>npcObj+5</code>. == See also == * [[BIN textdata]] * [[textdata cpt_panel_ranking_msg.txt]] * [[textdata NN.dat]] β the reward item records this table points into
Summary:
Please note that all contributions to Raynegard Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Raynegard Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Reddit Community
Discord Server
Recent changes
Random page
Help about MediaWiki
Special pages
Search
Tools
What links here
Related changes
Page information