In Progress James' lua shit

jamEs

fqjdlkmsbvqfgkhpoiuaeazer
Joined
Apr 26, 2016
Messages
1,155
Nebulae
3,345
REWORKED DATAFILE REEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

changes that have to happen

other button colours cause the last 2 are shit
better close button cause it looks out of place
less shadow

00b6b1e50810.PNG
 
Reactions: List

deathwolf

I AM SPIDERMAN, GRIST LIES! I AM HIM REALLY! ﷽﷽﷽﷽﷽
GTA RP Playtester
Joined
Aug 23, 2016
Messages
9,774
Nebulae
36,111
REWORKED DATAFILE REEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

changes that have to happen

other button colours cause the last 2 are shit
better close button cause it looks out of place
less shadow

00b6b1e50810.PNG
Can you make it so you can choose the colour layout, or is that too much work
 

deathwolf

I AM SPIDERMAN, GRIST LIES! I AM HIM REALLY! ﷽﷽﷽﷽﷽
GTA RP Playtester
Joined
Aug 23, 2016
Messages
9,774
Nebulae
36,111
yeah sure man what else you want added

No idea man I’d tag headcops and people that use data file actively x
 

Oxy[Morons]

ส็ส็็ส็็็็ส็็็็ส็็็็็็็ส็็็็็็็ส็็็็ส็็็็ส็็ส็
Joined
Apr 26, 2016
Messages
2,115
Nebulae
3,842
just sayin, if you haven’t already I’d suggest not being able to “Set BOL” if they’re already designated as such, to prevent spam

I’m sure you have already but seeing you spam the same thing got me thinking
 

jamEs

fqjdlkmsbvqfgkhpoiuaeazer
Joined
Apr 26, 2016
Messages
1,155
Nebulae
3,345
sorry one more thing bc no other place to post my lua nonsense

implemented first order euler method to solve some strange attractors (lorenz, rössler) and fourth-order runge kutta later on in fortran and c++

essentially a way to solve these system of ODE's:

YqBP1Wl.png

x63DT1M.png

results:
yT7SGu1.png

rBy0U2h.png



however that's not lua

so i ported all of the code to lua

result:




even first order euler method is fast enough to solve for 50k points almost every frame and accurate enough, bottleneck for fps is the amount of lines drawn
 
Reactions: List

jamEs

fqjdlkmsbvqfgkhpoiuaeazer
Joined
Apr 26, 2016
Messages
1,155
Nebulae
3,345
BqKUfAH.png

i wanted to see if I could predict prop movement without any physics simulations, just pure polynomial fitting in 3D

how does it work:
  1. Upon gravgunning a prop, capture its position 7 times every 0.1s
  2. Send this information to a local webserver that runs Flask with a POST request
  3. Use numpy to find the best fitting curve for the 7 points (hint: returns a 7th order polynomial per axis)
  4. Callback this info to the client
  5. Evaluate the 3 7th-order equations and draw a sphere per coordinate
i used a server because I'm not gonna spend any time writing a curve fitter in lua. fuck no
 
Reactions: List