Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an oversight in the water types analysis script #383

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading