Writing your AI in text

User avatar
Uthael
Script
Script
Posts: 28

Writing your AI in text

Post#1 » 24 Feb 2017, 08:11

Along with drag & drop, you have an option to type your AI.
Upon exiting the editor, the game would atomatically convert it to a visual representation. Auto-create and position the nodes.
You could extract the text from your current AI, too.
<extra fancy signature>

User avatar
GFX47
Dev
Dev
Posts: 2914

Re: Writing your AI in text

Post#2 » 24 Feb 2017, 10:07


User avatar
Uthael
Script
Script
Posts: 28

Re: Writing your AI in text

Post#3 » 24 Feb 2017, 12:50

Eh... Real text files and importing/exporting might be simple for people who use a computer for other things than social media and games.
My goals here were:
- to introduce the concept of parenthesis to people who play to learn
- to be able to write the code without having to use a pointer (much faster).
Maybe unlocked at lvl 8.
Spell-checking for commands would also be useful (you know... Recognized command changes color...).

Importing and exporting is fine, too. Better than having neither. But if you have to do that while tuning your AI; dragging, dropping and drawing lines to connect would still be faster.
<extra fancy signature>

User avatar
Kanishka
Skynet
Skynet
Posts: 1421
Contact:

Re: Writing your AI in text

Post#4 » 24 Feb 2017, 13:02

Maybe the syntax could be like SmallBasic! It is color-coded and is fairly simple to learn.
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

User avatar
GFX47
Dev
Dev
Posts: 2914

Re: Writing your AI in text

Post#5 » 24 Feb 2017, 16:09

I don't think text editing on mobile is fast/comfortable enough to make it a relevant feature (on mobile).

User avatar
Kanishka
Skynet
Skynet
Posts: 1421
Contact:

Re: Writing your AI in text

Post#6 » 24 Feb 2017, 16:35

Hmm... Text-Coding is too slow without a physical keyboard.
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

Botique
Algorithm
Algorithm
Posts: 96

Re: Writing your AI in text

Post#7 » 24 Feb 2017, 21:47

Not at this stage. Let the game first be game and fun. Let casual players be hooked, let them compete in visual programming.

User avatar
Kanishka
Skynet
Skynet
Posts: 1421
Contact:

Re: Writing your AI in text

Post#8 » 25 Feb 2017, 04:17

Botique wrote:Not at this stage. Let the game first be game and fun. Let casual players be hooked, let them compete in visual programming.

GFX47 wrote:...


Let Text-Coding be optional. A Toggle Switch in Settings. Maybe add a new In-Game Keyboard with If, Then, Enemy, Ally, Base, Resource, Attack, etc. Instead of Qwerty? You get the idea...
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

User avatar
Uthael
Script
Script
Posts: 28

Re: Writing your AI in text

Post#9 » 25 Feb 2017, 20:16

Of-course, it would be optional. But directly in the AI Editor menu. For easy switching.
For example in the top-right corner or to the right of Delete button (move the buttons to the left). When toggled, the visual representation would get overlaid with semi-transparent gray and the code would be written in text over it. Clicking it would enter the text editor.

Botique wrote:Not at this stage. Let the game first be game and fun. Let casual players be hooked, let them compete in visual programming.

Visual would still be the default. And if someone reacts like "wtf, hell no!", the back button is right there and toggling it back is just another click away. As I've said, you unlock the text editing feature as a last unlock. It adds no ingame advantage and everyone should already be familiar with IF, AND (conditions vertically), OR (conditions side-by-side) and NOT (Marked as X) by then.

Kanishka wrote:(...) without a physical keyboard.
GFX47 wrote:(...) mobile not fast/comfortable enough (...)

To whoever spends a couple of hours/day or more on their cellphone, typing is not a problem. Back when I was at college, there was a guy who was writing classes on his cellphone. He'd type every word the professors said and only stopped to sketch when needed.
<extra fancy signature>

User avatar
Kanishka
Skynet
Skynet
Posts: 1421
Contact:

Re: Writing your AI in text

Post#10 » 26 Feb 2017, 03:38

Uthael wrote:
Kanishka wrote:(...) without a physical keyboard.
GFX47 wrote:(...) mobile not fast/comfortable enough (...)

To whoever spends a couple of hours/day or more on their cellphone, typing is not a problem. Back when I was at college, there was a guy who was writing classes on his cellphone. He'd type every word the professors said and only stopped to sketch when needed.


I spend a lot of time on my phone/pad. Still, there is no competition for the good ol' physical keyboard. That tactile and haptic feedback... Irreplaceable.
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

pier4r
Skynet
Skynet
Posts: 3390

Re: Writing your AI in text

Post#11 » 26 Feb 2017, 09:45

Yes, he meant that is doable. I mean I suppose could be possible but gfx has limited resources I guess. I would prefer first selecting multiple nodes and then copy /paste even across Ais.
http://www.reddit.com/r/Gladiabots/wiki/players/pier4r_nvidia_shield_k1 -> Gladiabots CHAT, stats, insights and more ;

User avatar
Kanishka
Skynet
Skynet
Posts: 1421
Contact:

Re: Writing your AI in text

Post#12 » 26 Feb 2017, 11:38

pier4r wrote:Yes, he meant that is doable. I mean I suppose could be possible but gfx has limited resources I guess. I would prefer first selecting multiple nodes and then copy /paste even across Ais.


New & Improved Clipboard!

viewtopic.php?f=2&t=500
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

User avatar
Uthael
Script
Script
Posts: 28

Re: Writing your AI in text

Post#13 » 26 Feb 2017, 14:19

Yes, I think we all agree that copy-pasting multiple nodes over different AIs would be better. Even if copy-paste would take only 5min to implement into the text UI, polishing the graphic UI is a priority. It keeps the new players. More active players is always a good thing.

Text can wait (I hope not indefinitely).
<extra fancy signature>

Return to “Feature Requests”

Who is online

Users browsing this forum: Google [Bot] and 1 guest