Skip to content

Commit

Permalink
Merge pull request #383 from RagnarokResearchLab/fix-water-analysis
Browse files Browse the repository at this point in the history
 Fix an oversight in the water types analysis script
  • Loading branch information
rdw-software authored Feb 27, 2024
2 parents 187f8a4 + 3e6175a commit 3ffe75f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Tools/analyze-water-types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,23 @@ local FileAnalyzer = require("Tools.FileAnalyzer")
local console = require("console")
local json = require("json")

local table_insert = table.insert

local grfPath = "data.grf"
local grf = RagnarokGRF()
grf:Open(grfPath)

local rswFileList = grf:FindFilesByType("rsw")
local gndFileList = grf:FindFilesByType("gnd")
local fileList = { unpack(rswFileList), unpack(gndFileList) }
local fileList = {}

for index, grfEntry in ipairs(rswFileList) do
table_insert(fileList, grfEntry)
end

for index, grfEntry in ipairs(gndFileList) do
table_insert(fileList, grfEntry)
end

AnimatedWaterPlane.PREALLOCATE_GEOMETRY_BUFFERS = false -- Will run OOM here if preallocating all these buffers

Expand Down

0 comments on commit 3ffe75f

Please sign in to comment.