my frist mod

Post Reply
User avatar
chase programer
Member
Posts: 117
Joined: Thu Jan 03, 2013 16:56
Location: Everywhere.

my frist mod

by chase programer » Post

here it is http://minetestmodsmore.weebly.com/ ps its my frist mod lol
Back and ready to help with this amazing community that i lost.

User avatar
rarkenin
Member
Posts: 668
Joined: Tue Nov 20, 2012 20:48

by rarkenin » Post

You don't write a mod in C++. This isn't an NPC mod. This is just some C++ that basically compiles a Lua interpreter. Sorry, but this is not a working mod. It is some oseless code probably copy-pasted, judging by the lost characters. You also included the same LUA file in the textures folder. Why would you make a texture a Lua file?! If anything, all you're doing is generating search traffic for your "website".

Also, as I KEEP asking you, PLEASE capitalize and punctuate your sentences, and title the post properly, such as [npc]NPC mod[0.1]

Code: Select all

lua_State *lua_open (int initialStackSize);
#include <stdio.h>#include <lua.h> int main(int argc, char* argv[ ]){?? lua_State* luaVM = lua_open(0); ?? if (NULL == luaVM)?? {??????printf("Error Initializing lua\n");??????return -1;?? } ?? return 0;}
extern "C"{?? ?}
#include <stdio.h>extern "C"{ #include <lua.h>} int main(int argc, char* argv[ ]){?? lua_State* luaVM = lua_open(0); ?? if (NULL == luaVM)?? {??????printf("Error Initializing lua\n");??????return -1;?? } ?? return 0;}
void lua_close (lua_State *openState);
#include <stdio.h>extern "C"{ #include <lua.h>} int main(int argc, char* argv[ ]){?? lua_State* luaVM = lua_open(0); ?? if (NULL == luaVM)?? {??????printf("Error Initializing lua\n");??????return -1;?? } ?? // Do stuff with lua code.?????? lua_close( luaVM ); ?? return 0;}
#include <stdio.h>extern "C"{ #include <lua.h>} int main(int argc, char* argv[ ]){?? lua_State* luaVM = lua_open(0); ?? if (NULL == luaVM)?? {??????printf("Error Initializing lua\n");??????return -1;?? } ?? // Do stuff with lua code.?????? char* strLuaInput = "a = 1 + 1;\n"; ?? lua_dostring(luaVM, strLuaInput); ?? lua_close(luaVM);??  ?? return 0;}
#include <stdio.h>extern "C"{ #include <lua.h>}?int main(int argc, char* argv[ ]){?? lua_State* luaVM = lua_open(0); ?? if (NULL == luaVM)?? {??????printf("Error Initializing lua\n");??????return -1;?? } ?? // Do stuff with lua code.?????? char* strLuaInput = "a = 1 + 1;\nprint( a);\n"; ?? lua_dostring(luaVM, strLuaInput); ?? lua_close(luaVM);??  ?? return 0;}
#include <stdio.h>extern "C"{ #include <lua.h> #include <lualib.h>} int main(int argc, char* argv[ ]){?? lua_State* luaVM = lua_open(0); ?? if (NULL == luaVM)?? {??????printf("Error Initializing lua\n");??????return -1;?? } ?? // initialize lua standard library functions??? lua_baselibopen(luaVM);?? lua_iolibopen(luaVM);?? lua_strlibopen(luaVM);?? lua_mathlibopen(luaVM);??? // Do stuff with lua code.?????? char* strLuaInput = "a = 1 + 1;\nprint( a);\n"; ?? lua_dostring(luaVM, strLuaInput); ?? lua_close(luaVM);?? ??? return 0;}
#include <stdio.h>
extern "C"
{
 #include <lua.h>
 #include <lualib.h>
}
Last edited by rarkenin on Tue Jan 15, 2013 21:40, edited 1 time in total.
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.

User avatar
chase programer
Member
Posts: 117
Joined: Thu Jan 03, 2013 16:56
Location: Everywhere.

by chase programer » Post

rarkenin wrote:You don't write a mod in C++. This isn't an NPC mod. This is just some C++ that basically compiles a Lua interpreter. Sorry, but this is not a working mod. It is some oseless code probably copy-pasted, judging by the lost characters. You also included the same LUA file in the textures folder. Why would you make a texture a Lua file?!

Code: Select all

lua_State *lua_open (int initialStackSize);
#include <stdio.h>#include <lua.h> int main(int argc, char* argv[ ]){?? lua_State* luaVM = lua_open(0); ?? if (NULL == luaVM)?? {??????printf("Error Initializing lua\n");??????return -1;?? } ?? return 0;}
extern "C"{?? ?}
#include <stdio.h>extern "C"{ #include <lua.h>} int main(int argc, char* argv[ ]){?? lua_State* luaVM = lua_open(0); ?? if (NULL == luaVM)?? {??????printf("Error Initializing lua\n");??????return -1;?? } ?? return 0;}
void lua_close (lua_State *openState);
#include <stdio.h>extern "C"{ #include <lua.h>} int main(int argc, char* argv[ ]){?? lua_State* luaVM = lua_open(0); ?? if (NULL == luaVM)?? {??????printf("Error Initializing lua\n");??????return -1;?? } ?? // Do stuff with lua code.?????? lua_close( luaVM ); ?? return 0;}
#include <stdio.h>extern "C"{ #include <lua.h>} int main(int argc, char* argv[ ]){?? lua_State* luaVM = lua_open(0); ?? if (NULL == luaVM)?? {??????printf("Error Initializing lua\n");??????return -1;?? } ?? // Do stuff with lua code.?????? char* strLuaInput = "a = 1 + 1;\n"; ?? lua_dostring(luaVM, strLuaInput); ?? lua_close(luaVM);??  ?? return 0;}
#include <stdio.h>extern "C"{ #include <lua.h>}?int main(int argc, char* argv[ ]){?? lua_State* luaVM = lua_open(0); ?? if (NULL == luaVM)?? {??????printf("Error Initializing lua\n");??????return -1;?? } ?? // Do stuff with lua code.?????? char* strLuaInput = "a = 1 + 1;\nprint( a);\n"; ?? lua_dostring(luaVM, strLuaInput); ?? lua_close(luaVM);??  ?? return 0;}
#include <stdio.h>extern "C"{ #include <lua.h> #include <lualib.h>} int main(int argc, char* argv[ ]){?? lua_State* luaVM = lua_open(0); ?? if (NULL == luaVM)?? {??????printf("Error Initializing lua\n");??????return -1;?? } ?? // initialize lua standard library functions??? lua_baselibopen(luaVM);?? lua_iolibopen(luaVM);?? lua_strlibopen(luaVM);?? lua_mathlibopen(luaVM);??? // Do stuff with lua code.?????? char* strLuaInput = "a = 1 + 1;\nprint( a);\n"; ?? lua_dostring(luaVM, strLuaInput); ?? lua_close(luaVM);?? ??? return 0;}
#include <stdio.h>
extern "C"
{
 #include <lua.h>
 #include <lualib.h>
}


i used this http://www.gamedev.net/page/resources/_ ... -lua-r1932
Back and ready to help with this amazing community that i lost.

User avatar
rarkenin
Member
Posts: 668
Joined: Tue Nov 20, 2012 20:48

by rarkenin » Post

chase programer wrote:
rarkenin wrote:You don't write a mod in C++. This isn't an NPC mod. This is just some C++ that basically compiles a Lua interpreter. Sorry, but this is not a working mod. It is some oseless code probably copy-pasted, judging by the lost characters. You also included the same LUA file in the textures folder. Why would you make a texture a Lua file?!

SNIP


i used this http://www.gamedev.net/page/resources/_ ... -lua-r1932
So you just copy-pasted someone's code, and called it your own? That's plagiarism with some licenses. Anyway, that code ISN'T Lua. It's used TO RUN Lua.
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.

User avatar
chase programer
Member
Posts: 117
Joined: Thu Jan 03, 2013 16:56
Location: Everywhere.

by chase programer » Post

OK
Back and ready to help with this amazing community that i lost.

User avatar
Menche
Member
Posts: 1001
Joined: Sat Jul 02, 2011 00:43
IRC: Menchers
In-game: Menche
Location: An island in a lava lake.

by Menche » Post

There's an introduction to minetest modding here.
An innocent kitten dies every time you top-post.

User avatar
Liandri
Member
Posts: 29
Joined: Tue Jan 10, 2012 12:20

by Liandri » Post

chase programer wrote:OK
Definitely you have the most misleading nickname in the entire history of modern computing science.

Post Reply

Who is online

Users browsing this forum: QuoteMasterN and 3 guests