[ClientMod] basic_robot_csm [basic_robot_csm]

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

[ClientMod] basic_robot_csm [basic_robot_csm]

by hajo » Mon Sep 04, 2017 05:46

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: 187
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [ClientMod] basic_robot_csm [basic_robot_csm]

by Lejo » Thu Sep 07, 2017 07:33

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
DS-minetest
Member
 
Posts: 958
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [ClientMod] basic_robot_csm [basic_robot_csm]

by DS-minetest » Thu Sep 07, 2017 10:36

@Lejo: Try this. Maybe you'll have to add it to depends.txt.
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

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

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

Re: [ClientMod] basic_robot_csm [basic_robot_csm]

by hajo » Fri Sep 08, 2017 08:54

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: 187
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo
 

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

Fixerol
Member
 
Posts: 736
Joined: Sun Jul 31, 2011 11:23
Location: Ukraine
IRC: Fixer
In-game: Fixer

Re: [ClientMod] basic_robot_csm [basic_robot_csm]

by Fixerol » Mon Sep 18, 2017 19:58

register_on_receiving_chat_message


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


Return to Client-side modding



Who is online

Users browsing this forum: No registered users and 1 guest