Giter VIP home page Giter VIP logo

furyband's People

Contributors

geozop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

furyband's Issues

Crash upon editing any lib/edit files and saving .atm in compiled app.

Thank you for making this available. So much wonderful nostalgia.

Saving the automatizer rules works, but app crashes after saving and exiting the screen you can save from.

Modifying any of the text files in lib/edit, even just whitespace, leads to the app crashing when attempting to load a module.

I tried to build myself on windows but get over a hundred errors. Most are
fatal error C1083: Cannot open include file: 'sys/param.h': No such file or directory

Unfortunately, my C++ skills are lacking.

Lua Issues in Lib s_aux.lua

Upon trying to play the game as a dark elf master the game seems to throw a bunch of errors upon any action, which can be seen here

https://pomf2.lain.la/f/w7f2sxh1.png

(could not copy the text as curses wasn't found on my system).

I was able to fix the bug due to some checks, however I can't submit a patch due to it being in the lua.

Namely two values were null in get_level_school

 __tmp_spells[s]

__spell_school[s]

I was able to fix it by turning the code into

-- Change this fct if I want to switch to learnable spells
function get_level_school(s, max, min)
	local lvl, sch, index, num, bonus
	local allow_spell_power = TRUE

	lvl = 0
	num = 0
	bonus = 0

	-- No max specified ? assume 50
	if not max then
		max = 50
	end
	if not min then
		min = 1
	end

	-- Do we pass tests?
  	if __tmp_spells[s] then
	  	if __tmp_spells[s].depend then
			if __tmp_spells[s].depend() ~= TRUE then
				return min, "n/a"
			end
		end
        end

        if (not __spell_school[s]) then
           return min, "n/a"
        end

	for index, sch in __spell_school[s] do
		local r, s, p, ok = 0, 0, 0, 0

the parts of the code that were called before this look like

function get_level(s, max, min)
	if type(s) == "number" then
		-- Ahah shall we use Magic device instead ?
		if get_level_use_stick > -1 then
			return get_level_device(s, max, min)
		else
			local lvl, na = get_level_school(s, max, min)
			return lvl
		end
	else
		return get_level_power(s, max, min)
	end
end


-- Get the amount of mana(or power) needed
function get_mana(s)
	return spell(s).mana + get_level(s, spell(s).mana_max - spell(s).mana, 0)
end


add_hooks
{
	-- Reduce the mana by four times the cost of the spell
	[HOOK_CALC_MANA] = function(msp)
		if player.inertia_controlled_spell ~= -1 then
			msp = msp - (get_mana(player.inertia_controlled_spell) * 4)
			if msp < 0 then msp = 0 end
			return TRUE, msp

Has this error occurred before? How best should I submit a patch for this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.