[ClientMod] basic_robot_csm [basic_robot_csm]

Post Reply
hajo
Member
Posts: 606
Joined: Thu Oct 13, 2016 10:45
Location: DE
Contact:

[ClientMod] basic_robot_csm [basic_robot_csm]

by hajo » Post

rnd made a new robot-mod as CSM, but didn't feel like announcing it here on the forum,
so I'm doing it now.

basic_robot_csm needs minetest 0.5.0 or 0.4.16-dev.
Source on Github
Current version 2017-08-19
My documentation on the wiki

Actually, it is not a robot that can move around (lsuch as basic_robot),
but a lua-sandbox with an editor-formspec for writing code.
That editor has 8 tabs for different texts or source-code that can be run.

Primary usage right now is as a calculator / chat-bot etc.
but everything lua can do within the client_lua_api is possible.

See some example-programs on the wiki:
  • HelloWorld Execute-command
    Report-time Report-position
    MiniMap ScreenShot
    Calculate Math Play-sound
    Chat-listener Chat-bell Quiz-Solver
That means, many of the current simple csm-mods
could be replaced with a few lines of code (eg. chatbell, or minimap).
Last edited by hajo on Fri Sep 22, 2017 12:13, edited 4 times in total.

User avatar
Lejo
Member
Posts: 718
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [ClientMod] basic_robot_csm [basic_robot_csm]

by Lejo » Post

I get an Error:

Code: Select all

2017-09-07 09:26:10: ERROR[Main]: ModError: Failed to load and run script from C:\Users\user\Desktop\minetest-0.4.16-win64\bin\..\clientmods\basic_robot_csm\init.lua:
2017-09-07 09:26:10: ERROR[Main]: ...-0.4.16-win64\bin\..\clientmods\basic_robot_csm\init.lua:397: attempt to call field 'register_on_receiving_chat_message' (a nil value)
What is the problem?

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [ClientMod] basic_robot_csm [basic_robot_csm]

by Desour » Post

@Lejo: Try this. Maybe you'll have to add it to depends.txt.
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

User avatar
Lejo
Member
Posts: 718
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [ClientMod] basic_robot_csm [basic_robot_csm]

by Lejo » Post

I don't think that this should be a temporary solution.

hajo
Member
Posts: 606
Joined: Thu Oct 13, 2016 10:45
Location: DE
Contact:

Re: [ClientMod] basic_robot_csm [basic_robot_csm]

by hajo » Post

Lejo wrote:I get an Error:

Code: Select all

2017-09-07 09:26:10: ERROR[Main]: ...-0.4.16-win64\bin\..\clientmods\basic_robot_csm\init.lua:397: attempt to call field 'register_on_receiving_chat_message' (a nil value)
What version of minetest are you running, exactly?

basic_robot_csm needs 0.5.0 or 0.4.16-dev.

User avatar
Lejo
Member
Posts: 718
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [ClientMod] basic_robot_csm [basic_robot_csm]

by Lejo » Post

I use 0.4.16 AppImage.

User avatar
ManElevation
Member
Posts: 896
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
Location: Madrid,Spain

Re: [ClientMod] basic_robot_csm [basic_robot_csm]

by ManElevation » Post

ah! i remeber rnd showing me this. thx for posting!
My Public Mods! Discord: Rottweiler Games#3368

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

Re: [ClientMod] basic_robot_csm [basic_robot_csm]

by Fixer » Post

register_on_receiving_chat_message
I think this was renamed to register_on_receiving_chat_messages, try it or look up in luadoc...

FlameFireling
Member
Posts: 24
Joined: Sun Jul 23, 2017 12:37

Re: [ClientMod] basic_robot_csm [basic_robot_csm]

by FlameFireling » Post

rnd made a new robot-mod as CSM, but didn't feel like announcing it here on the forum,
so I'm doing it now.

basic_robot_csm needs minetest 0.5.0 or 0.4.16-dev.
Source on Github
Current version 2017-08-19
My documentation on the wiki

Actually, it is not a robot that can move around (lsuch as basic_robot),
but a lua-sandbox with an editor-formspec for writing code.
That editor has 8 tabs for different texts or source-code that can be run.

Primary usage right now is as a calculator / chat-bot etc.
but everything lua can do within the client_lua_api is possible.

See some example-programs on the wiki:
  • HelloWorld Execute-command
    Report-time Report-position
    MiniMap ScreenShot
    Calculate Math Play-sound
    Chat-listener Chat-bell Quiz-Solver
That means, many of the current simple csm-mods
I get an following error

Code: Select all

2017-12-03 21:46:57: ERROR[Main]: ModError: Failed to load and run script from C:\Users\USERNAME\Desktop\minetest-0.4.16-win64\bin\..\clientmods\basic_robot_csm\init.lua:
2017-12-03 21:46:57: ERROR[Main]: ...-0.4.16-win64\bin\..\clientmods\basic_robot_csm\init.lua:397: attempt to call field 'register_on_receiving_chat_message' (a nil value)
2017-12-03 21:46:57: ERROR[Main]: Sprawdź plik debug.txt by uzyskać więcej informacji.
Telnet > IRC

hajo
Member
Posts: 606
Joined: Thu Oct 13, 2016 10:45
Location: DE
Contact:

Re: [ClientMod] basic_robot_csm [basic_robot_csm]

by hajo » Post

FlameFireling wrote:
hajo wrote: basic_robot_csm needs minetest 0.5.0 or 0.4.16-dev.
I get an following error

Code: Select all

2017-12-03 21:46:57: ERROR[Main]: ModError: Failed to load and run script from C:\Users\USERNAME\Desktop\minetest-0.4.16-win64\bin\..\clientmods\basic_robot_csm\init.lua:
2017-12-03 21:46:57: ERROR[Main]: ...-0.4.16-win64\bin\..\clientmods\basic_robot_csm\init.lua:397: attempt to call field 'register_on_receiving_chat_message' (a nil value)
See above, basic_robot_csm needs 0.5.0 or 0.4.16-dev.

What version&build of minetest are you running, exactly?

FlameFireling
Member
Posts: 24
Joined: Sun Jul 23, 2017 12:37

Re: [ClientMod] basic_robot_csm [basic_robot_csm]

by FlameFireling » Post

hajo wrote:
FlameFireling wrote:
hajo wrote: basic_robot_csm needs minetest 0.5.0 or 0.4.16-dev.
I get an following error

Code: Select all

2017-12-03 21:46:57: ERROR[Main]: ModError: Failed to load and run script from C:\Users\USERNAME\Desktop\minetest-0.4.16-win64\bin\..\clientmods\basic_robot_csm\init.lua:
2017-12-03 21:46:57: ERROR[Main]: ...-0.4.16-win64\bin\..\clientmods\basic_robot_csm\init.lua:397: attempt to call field 'register_on_receiving_chat_message' (a nil value)
See above, basic_robot_csm needs 0.5.0 or 0.4.16-dev.

What version&build of minetest are you running, exactly?
0.4.16-stable which i complied from source on linux but i found out that i should replace message with messages
Telnet > IRC

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests