Z
Z
ZhGhost2017-01-18 20:21:41
C++ / C#
ZhGhost, 2017-01-18 20:21:41

Is such a scheme for embedding a scripting language possible?

In general, I want to write my own toy (start my way into programming). The most important thing I want to implement is support for the scripting language in the game in order to give players the opportunity to create their own modes using Lua (for example). Like in MTA, SAMP, GM. Is such a scheme possible: Client part in C # (Unity) -> Server, with the ability to write your own modes (On Sharp, server logic). Or implement a server on the pluses and fasten the server language? I saw a couple of assets in Unity with the ability to attach my own API, but the functionality of these assets was poor. In general, it is possible to implement the client part on Unity, and the server on the pluses with the ability to write your own mode. And is it possible to write a server with support for a scripting language in Sharpe?
PS Please do not write that it is difficult for a beginner to implement, that do something simpler. I understand, but this game will be purely a hobby that I can write for at least a year / two / three ...... Therefore, I will study ..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MrDywar Pichugin, 2017-01-18
@ZhGhost

1) A Complete Guide to the C# 6.... Programming Language (Syntax and Language Features)
2) ASP.NET Web API 2 Guide (how to accept HTTP Requests from Players)
3) Design Patterns in C# and .NET (how to design server and client)
4) Entity Framework Guide (how to store user data)
5) Unity Guide (how to make a custom client)
Whatever scripting language you choose as allowed for players, you will have to parse it yourself and execute it too - this is a task very difficult.
It's easier to give ready-made action blocks (objects) that can be placed in a certain order to execute the player's algorithm. And this is also not easy to do normally and provide for all the feints.

S
Stanislav Silin, 2017-01-18
@byme

C# itself can be compiled at runtime.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question