Repository navigation
Rance Browser 1.3.0
1.3.0
Rance Quest's 3D textures as RQ MOD changes them: a model's textures listed as RQ MOD lists them, a PNG or colours by numbers tried on one and drawn as the game would draw them, and each texture's UV map.
- Its textures (the 3D tab) lists what the model's materials use, in the model's order, as RQ MOD's
rq.image.texturesdoes: each texture's name, the maps it is used as (colour, alpha, light, normal, specular), its size, whether it has alpha, its frames (a texture the game animates, asface.png,face[1].png...), "its own alpha map" where a material cuts the picture by its own red, and "not in the folder" for a name the archive lacks. A picture opens in the 3D textures tab; the folder's other pictures, which no material names, are shown under the list. - Save as PNG... saves the game's picture, Save the UV map... the triangles the model draws with that file: white lines over a faint fill, see-through elsewhere, at the picture's size, to lay over it in a paint program (drawn without a window, the same bytes each time; a light map's by the light UVs).
- Try a PNG... puts a PNG on the texture and loads the model again, keeping the camera, the motion and the fight: drawn as RQ MOD's engine draws a mod's picture, read by a copy of its PNG reader and given the game's alpha kind (a solid PNG on a see-through texture keeps the game's holes). A texture with frames takes a PNG per frame, picked together and taken in their names' order (frame2 before frame10), the order shown under it. A file RQ MOD would refuse is refused under its row with RQ MOD's own words (not a PNG, too large, cut off, a frame's name, a count other than the game's). The game's takes the try away; another model starts with none. A file gone or broken at a later load, or when the model is exported, draws the game's picture, each file said once in the status line (several at once on one line), as the engine logs each. Two tried PNGs of one name from two folders, which the lines would name as one file, are pointed out under the lines.
- Colours... on a colour texture opens three sliders, hue (-360 to 360 degrees), saturation and lightness (factors, 0 to 4), and loads the model again when one is let go: the game's own picture, each frame, turned in HSL by RQ MOD's own rule, as
rq.image.texture's{ hue = ... }does (grey, white and black stay grey). Every colour texture: Colours..., above the rows, puts the same numbers on each colour texture of the model, asrq.monster.model'stextures["*"]; a texture tried by its name keeps its own try. Colours on another kind of texture, and*on a model with no colour texture or given a PNG, are refused, as RQ MOD refuses them. - The Lua lines follow the tries:
rq.image.texturefor every model that draws each texture (its frames as a list, colours as{ hue = 200, saturation = 1.5 }, the numbers not at their defaults), and for a monster's folderrq.monster.modelwithtextures, a model of the mod's own (colours on every colour texture as["*"] = { ... }, whichrq.image.texturedoes not take: there, a line per texture); each PNG named in the mod'stexturesfolder. The 3D textures tab shows therq.image.textureline of a picture a model draws (a frame's as the list on its base), and says so of a picture no model draws by its name (a build without the 3D view says neither). - The export writes a tried PNG or tried colours as the engine draws them, each frame its own picture, and the game's alpha maps as before.
- On the command line:
--texture NAME=FILE.png[,FILE2.png,...]and--colors NAME=HUE[,SATURATION[,LIGHTNESS]](*as NAME: every colour texture), 64 of them in all, with--shot 3dand with--exportof one model, checked before any window opens (a refusal exits 1 with RQ MOD's text);--view-only, for--shot 3dto save the 3D view's frame alone;--uv-map NAME OUT.pngand--save-texture NAME OUT.pngwith--select MODEL, without a window;--decode FILE.png OUT.rgba(RQ MOD's reader) and--decode-libsys4, the raw pixels for a check, and--recolor FILE.png OUT.rgba HUE,SATURATION,LIGHTNESS, the same turned by RQ MOD's colours. Exit codes stay 0, 1 and 2. --checkalso draws the UV map of every texture of every model and counts its triangles against the renderer's meshes, and tries a PNG of its own on the Cockroach, deletes it and loads the model again (the game's picture, the warning once). The report's3dgainsdraw.uv_mapsandtries.- The copies of RQ MOD's code gain its PNG reader (
src/core/rq_pixels.c) and its rules for a mod's picture on a 3D texture (src/core/3d/rq_textures.c), with the renderer'smodel.cand3d_internal.has RQ MOD changed them;src/core/COPIESnames them. libpng is linked in for the reader as well as through libsys4.
1.2.0
Rance Quest's 3D models: a tab that draws them as the game draws them, and each one as a glTF file for Blender.
- The 3D models tab. The models of
Data\ReignData.red: the monsters and figures, the rooms, the fight backgrounds and the props, by kind, each by its folder and the game's name (a monster's with the English names of the monsters that wear it), with a search over them. Each one is drawn by a copy of RQ MOD's 3D renderer, so as the game draws it: its textures and light maps, its outline, its texture animations. Left drag turns the camera, right drag moves it, the wheel comes closer; the camera frames the model through its whole motion. Outline and Light map turn the game's off; Bones and Walk mesh draw the skeleton and the floor a room's characters walk on; the view lies over black, white or squares. - Motions at the game's 30 frames a second: a monster's motions as a fight plays them, by the game's monster table ("攻撃 · gokiburi_kougeki · 1 to 21, once"), a prop's as a map shows it, each motion file of the folder whole, or the rest pose. Play and Pause (Space), a frame back or on (Comma and Period), a slider over the frames and the speed, as in the Flash tab.
- In a fight. A monster stands on one of the game's 40 fight backgrounds, where a fight puts it, at its size, with its shadow on the ground (Shadow) and, with Fight camera, seen through the fight's camera.
- The right side: the model's facts (its version, meshes, triangles, bones, motions), its textures, each opening the 3D textures tab at it, and RQ MOD's Lua lines (
rq.monster.modelfor a monster's model,rq.battle.start'sbackground,rq.dungeon.place'slook). Save this frame as PNG... saves the view at its size, see-through where nothing is drawn. - Export the model as glTF (.glb)... writes the model as one glTF binary file: its meshes, its textures (as PNG, inside the file), its materials (the game's alpha tests and blending as glTF's, each one's choice said in words where glTF cannot do both), its skeleton and each point's weights (the four largest, as the game uses), each motion as an animation named by its file, a room's walk mesh as an object of its own, and what glTF has no place for as properties named
rq_*: the game's names, its motions' frames as the game plays them, a material's flags, light map and frames. The points' colours are written as a glTF reader reads them, and each mesh's UVs are moved by whole squares onto their picture (the game keeps most a square away, and its textures repeat, so the model draws the same). A file is written under another name and takes its own once whole. --exportwrites one model (--select), a kind's (--kind chara,map,bg,etc) or every one (--all), to a folder withexport.json: what each file holds and points of each model as the renderer places them, to check the files against in another program.- The Names tab shows each monster's 3D model as its picture, with Open in the 3D tab.
--shot 3ddraws the 3D tab:--selecttakes a model's folder,Kind/folderor a monster's model number, with--motion,--frame,--fight,--fight-camera,--walkand--bones.--checkreads every 3D model and the files beside it (motions, texture animations, materials), draws each model through each of its motions, plays the game's motions as a fight does, stands each monster on a fight background with its shadow, and exports a room and a monster, checking that the view draws the same after. The report adds3d: the counts, and the gaps the game's own files hold (five motion files the engine refuses, as their bones are not the model's).- The 3D renderer is the library
rance_3d(src/core/3d), apart fromrance_core, so a program that takesrance_coretakes no 3D code: a copy of RQ MOD's engine's (src/core/COPIESnames each file), on cglm 0.9.7 (MIT), which meson fetches from its wrap. The meson option3d(auto) builds it; the releases build with-D3d=enabled, and cglm's license is in the zip. A fatal error inside the renderer drops that model, not the program. The tab needs OpenGL 3.1; with less it says so, and the other tabs work.
1.1.0
The Flash tab plays a file as Rance Quest's engine plays it, and says whether the game would play it at all.
- The player. A Flash file plays in the Flash tab as RQ MOD's engine plays it: its frames at the game's 30 a second (Rance Quest plays every Flash file at 30, whatever the file says; another game's at the file's own rate), its actions (stop, play, gotoFrame), its sounds at their frames over each other, its blend modes and colour changes, each frame drawn with OpenGL as the engine draws it. Play and Pause (Space), the first and the last frame, a frame back or on (Comma and Period), a slider over the frames, Loop, Sounds, the speed (1, 1/2, 1/4, 1/10), what lies under it (squares, black or white) and the zoom. Its pictures shows the bitmaps' grid as before.
- What the game makes of it. Every file is checked by RQ MOD's rules, the engine's reader's and its player's: the game plays it, plays it with warnings, would not play it, or cannot read it. Each problem and warning comes with its frame, its tag and what to do. Then what the file is: its container and version, size, frames and length at the game's rate, its pictures (and how many have soft edges), shapes, sprites and sounds, how often the sounds start, its blend modes, colour changes and jumps. A file the game would not play is not played here either.
- A file from disk. Open a .swf or .aff file... above the list, a file dropped on the window, or its path on the command line: a mod's own animation is checked and played before it goes into a mod, with RQ MOD's Lua lines for it (
rq.image.add_flash,rq.image.play_flash). A game file gets the line that replaces it with a file of the same size (the game places it by its size) and the one that plays it. - Save this frame as PNG... saves the frame shown, its see-through kept.
- Soft edges as drawn. A Flash picture's colours are stored multiplied by its alpha where it has soft edges; they are divided back as RQ MOD's engine now does, so glows and soft edges show and save brighter, as drawn. 1.0.1 showed them darker than the game's art.
--checkchecks every Flash file by the engine's rules and plays each one to its last frame and back to its first. The report addsplays,with_warnings,played,back_to_first,frames_played,sounds_started,jumpsandmost_objects; a file the rules refuse, or one that does not reach its end, fails the check.--shot flashtakes--frame N(the frame, from 1),--file PATH(a file from disk) and--select NAME(a file by its name; a name the game does not have fails the shot instead of drawing the first file).- The library (
rance_core) adds the mixer, several sounds at once and music with its fades (from RQ Scene Editor), and the Flash player (fplay_*incore.h), which draws into a texture any Dear ImGui window shows. With them come RQ MOD's Flash checker (swf_check.c, a copy of the engine's) and the engine's fixes to the Flash reader: a tag it does not know, a file cut short, an empty sprite or a length past the file's end no longer close the program.