Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

AntikoreDev

10
Posts
1
Topics
8
Followers
4
Following
A member registered Mar 06, 2019 · View creator page →

Creator of

Recent community posts

Cool! Thanks :)

I already fixed my issue actually, they were different problems altogether, one of them the file paths, for example.

Thanks for the soon response, have a good day :D

I noticed the first thing actually.

What do you mean on “Lua-side global function to call sub functions”. I’m kinda lost on this

Thanks in advance :)

I’m having an issue with functions. I want to make all functions be organized into their tables. (That’s why I’m using sha1, it’s so pointless to have twice the same function so I use that to gimmick a memory reference (yeah, i know its dumb))

I’ve been doing a lot of tests, and this code always crash in the lua_call command at the last line. (Added there for testing purposes). If I change it to run a function from the field string, it works, the function actually runs.

Some reason when I check using lua_global_get the field returns undefined, and when passeed to the table, the same thing happens.

What I’m doing wrong? It has been a few days trying this and still not getting this to work.

If then I run this snippet from a file I get an error.

function onLoad()
   console.log("Hello, World!");
end

Error:

attempt to call a string value
stack traceback:

Here is the module adder script.

function lua_add_module(state, module, refs){
	var memory_table = "";
	var len = array_length(refs);

	for (var i = 0; i < len; i++){
		var ref = array_get(refs, i);
		
		var val = ref.val;
		var name = ref.name;
		
		var field = "_" + sha1_string_utf8(script_get_name(val));
		
		lua_add_function(state, field, val);

		memory_table += " " + name + " = " + field + (i + 1 == len ? "" : "\n");
	}

	var data = string(module) + " = { " + memory_table + " };";
	
	lua_add_code(state, data);
	lua_call(state, "console.log", "Hello, World!");
}

This is what calls the command

// Add necessary functions
lua_add_module(state, "console", [
    { name: "log", val: lua_console_log }
]);

And this is the script lua_console_log with it’s method lua_console_log

function lua_console_log(msg){
	show_debug_message(msg);
}

Crash Thanks in advance!

Thanks! I'm not very good with animations but with practice I will improve. I have already on my plans to do a revised version in the future, after some other projects. I'll note those things up and see if I'm able to add them! :D

Thanks! :D

Ty

Thank you so much! About the buttons, maybe I update it later with some alternatives for controls :D

No me acuerdo muy bien, pero creo que era Race aunque no estoy seguro por lo tanto podría ser cualquier otro.

Yo 3/8 xD

Tenía buenas expectativas de este juego, y la verdad, las han superado con creces. Normalmente tener expectativas previas de un juego suele ser muy demoledor cuando juegas el producto final, pero me he divertido incluso más de lo que me esperaba. No he encontrado bugs importantes pero si alguno pequeño, como que el botón de Retry en el arcade, en español sigue poniendo Retry; El botón de comenzar del menú para empezar a jugar el modo normal está demasiado pegado al barco que indica que lo estás seleccionando. Y como se ve en la imagen de abajo, el juego ha indicado como ganador al barco marrón en vez de al negro incluso cuando los dos quedaban vivos, como he estado un rato jugando y esto a ocurrido a mitad más o menos, no me acuerdo de todos los detalles, pero solo me ha ocurrido una vez, creo. (Siento, no poder dar más detalles. Uso Windows 10, 64-bits)

Resumen: Muy buen juego 10/10.