IRC logs of Libera.Chat #BZFlag for Wednesday, 2022-02-09

*** Gort <Gort!~gort@82-69-126-225.dsl.in-addr.zen.co.uk> has joined #bzflag00:47
*** Gort <Gort!~gort@82-69-126-225.dsl.in-addr.zen.co.uk> has quit IRC (Quit: Leaving)01:05
*** I_Died_Once <I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has quit IRC (Ping timeout: 256 seconds)03:29
*** Sgeo <Sgeo!~Sgeo@user/sgeo> has quit IRC (Read error: Connection reset by peer)07:47
tuponeI'm working on integrating python on my pythonPlugin branch. Before going deep is someone doing anything similar, or that was already done and discarded ?10:12
*** blast007[m] <blast007[m]!~blast007m@2001:470:69fc:105::7ec> has joined #bzflag10:12
*** I_Died_Once <I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has joined #bzflag10:56
blast007why python over something like AngelScript or Squirrel?11:37
blast007is the goal to replace C/C++ plugins with a scripting language?11:39
tuponepython is well known and yes, is for the plugin11:40
blast007Python will be annoying though since they dropped support for older Windows (Windows 7 and Vista)11:42
tuponehowever is only for the server11:43
blast007bzfs is on Windows too11:43
tuponeyes, I know11:44
blast0072.99 had the start of a C/C++ plugin that let you run python scripts: https://github.com/BZFlag-Dev/bzflag/tree/2.99/plugins/python11:48
*** _I_Died_Once <_I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has joined #bzflag12:50
*** I_Died_Once <I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has quit IRC (Ping timeout: 250 seconds)12:54
tuponeI would like to test something easier for me. Load a python file (only one) and call something like bzSpawnEvent if defined in python13:47
*** Sgeo <Sgeo!~Sgeo@user/sgeo> has joined #bzflag15:19
*** bittin[m] <bittin[m]!~bittin-gu@2001:470:69fc:105::603> has quit IRC (Quit: You have been kicked for being idle)16:00
*** blast007[m] <blast007[m]!~blast007m@2001:470:69fc:105::7ec> has quit IRC (Quit: You have been kicked for being idle)16:00
Agatha"python is well known" -> indeed. I've never even heard of AngelScript or Squirrel. Note: another well-known choice would be Lua.17:13
*** blast007[m] <blast007[m]!~blast007m@2001:470:69fc:105::7ec> has joined #bzflag17:13
blast007AngelScript is used by SuperTuxKart18:02
SpringTank>Python will be annoying though since they dropped support for older Windows (Windows 7 and Vista)19:29
SpringTankI agree with Agatha, lua is super easy to script with.19:29
SpringTankand as blast has said, the implementation has already been started19:30
AgathaTo clarify: I am not a fan of Lua; I'd much prefer Python. I'm just saying that both are common. Actually, Lua is probably even more common for game scripting (why I know about it).19:30
the_mapLua is 1-indexed :(19:32
blast007I didn't really like Lua the last time we tried it (also in 2.99)19:34
blast007I can't really why exactly though.. it's been a while :)19:34
blast007(I disliked it beyond coding in it as well, since our implementation used a modified version of Lua, so we were gonna havae to maintain a custom build)19:35
blast007have*19:35
SpringTank>Lua is 1-indexed19:36
SpringTanki forgot about this 19:36
blast007oh yeah.. that was (pun intended) one reason  :P19:36
the_mapthe 1-indexing is about the only thing I remember from playing with Lua :)19:36
blast007"Efforts have been made to let it call standard C functions and C++ methods with little to no need for proxy functions. The application simply registers the functions, objects, and methods that the scripts should be able to work with and nothing more has to be done with your code. The same functions used by the application internally can also be used by the scripting engine, which eliminates ...19:37
SpringTankguys, why don't we just do it in C++?19:37
blast007... the need to duplicate functionality." -AngelScript19:37
SpringTank:P19:37
blast007SpringTank: embed a C++ compiler in bzfs?  perfect!19:38
SpringTankno, a C++ interpreter19:38
SpringTankit's like scripting, but uses C++ syntax19:38
blast007so basically AngelScript?  :)19:38
SpringTankoh wait that's C#19:38
SpringTankyes19:39
the_mapif you want another language, do it all in the precompiler19:39
SpringTankjust use shaders that compile at runtime19:39
the_map"I'm getting a lot of jitter" "yeah that's 'just-in-time' compiling, that's what that stands for. it means it's running efficiently the more jitter you have"19:40
SpringTankJitter: When the game engine doesn't throw out old packets.19:43
AgathaSuspiciously, tanks only jitter when bullets are about to hit. This is actually merely because they get nervous.20:36
tuponeImplemented the SpawnPosEvent in python. Not so concise :)20:52
tuponebut the airspawn plugin is now mostly pos['z'] += random() * 100.020:55
*** Harlin <Harlin!~DonQixote@75-163-202-34.clsp.qwest.net> has joined #bzflag21:43

Generated by irclog2html.py 2.17.3.dev0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!