Search found 643 matches
- Sat Sep 26, 2020 10:13 am
- Forum: Showcase
- Topic: Someone interested in some libs/includes?
- Replies: 12
- Views: 2558
Re: Someone interested in some libs/includes?
- Added G2D Lib examples, this is useful especially for the skin system. - Added JSON Lib, an include file I use to decode JSON answers I get querying servers. JSON Lib CONTENTS ================= :: Main Functions :: JSON.Decode() :: Support Functions :: JSON._IsArrayEnded() JSON._IsObjectEnded() JS...
- Mon Aug 24, 2020 11:30 am
- Forum: Showcase
- Topic: Femme Fatale Free Mp3
- Replies: 5
- Views: 1196
Re: Femme Fatale Free Mp3
Good job! I really liked your track 

- Tue Aug 11, 2020 5:38 pm
- Forum: Showcase
- Topic: Someone interested in some libs/includes?
- Replies: 12
- Views: 2558
Re: Someone interested in some libs/includes?
I've added another include called G2D , it has a full-featured skinning system :) Here is the contents: :: POINT 2D OBJECT :: G2D.Point:New() G2D.Point:Distance() G2D.Point:DotProduct() G2D.Point:MidPoint() G2D.Point:Normal2D() G2D.Point:Normalize() G2D.Point:Rotate() G2D.Point:Scale() :: POLYGON OB...
- Sun Aug 09, 2020 12:42 pm
- Forum: Showcase
- Topic: Someone interested in some libs/includes?
- Replies: 12
- Views: 2558
Someone interested in some libs/includes?
Hello Hollywood coders! Recently I've decided to publish all my stuff on GitHub and I started to upload my libraries (which are includes in plain Hollywood), I've included a readme with some basic instruction on how to install them (it's very simple!). I plan to upload what I've coded it the last ye...
- Thu Jul 09, 2020 8:26 pm
- Forum: Hollywood bugs
- Topic: Problems with big integers and some Hollywood operators
- Replies: 10
- Views: 1723
Re: Problems with big integers and some Hollywood operators
There is no problem adapting the code for me now that I know the problems :) When you have to port something like this and you start getting thousand of errors in your face, the debug sessions become hell :D I suggest you to document how math works on Hollywood and to specify when there are differen...
- Thu Jul 09, 2020 6:26 pm
- Forum: Hollywood bugs
- Topic: Problems with big integers and some Hollywood operators
- Replies: 10
- Views: 1723
Re: Problems with big integers and some Hollywood operators
Yep, but if you use % :
You get:

Code: Select all
local a = -10225030983111
local d = 2^24
print(a % d)
Code: Select all
11080249.0

- Thu Jul 09, 2020 5:21 pm
- Forum: Hollywood bugs
- Topic: Problems with big integers and some Hollywood operators
- Replies: 10
- Views: 1723
Re: Problems with big integers and some Hollywood operators
I'm on WIndows 10, but if you look at the link nr.2 they say that both results are valid even if the positive one is more mathematics-friendly.
Every online calculator I found returned the positive result, I'm not too into deep-math-stuff
Every online calculator I found returned the positive result, I'm not too into deep-math-stuff

- Thu Jul 09, 2020 4:37 pm
- Forum: Hollywood bugs
- Topic: Problems with big integers and some Hollywood operators
- Replies: 10
- Views: 1723
Re: Problems with big integers and some Hollywood operators
Ok, for the << >> operators, I can use the division/multiplication even if it is slower but the fact is that I didn't know how they was implemented thinking (wrongly) that all #NUMBERS was treated/stored in the same way :) About the modulo: 1. Calculator online : link 2. Another one with an explanat...
- Wed Jul 08, 2020 5:37 pm
- Forum: Hollywood bugs
- Topic: Problems with big integers and some Hollywood operators
- Replies: 10
- Views: 1723
Re: Problems with big integers and some Hollywood operators
Found another wrong behaviour: Local a = -10225030983111 Local d = 2^24 DebugPrint(Mod(a, d)) It prints -5696967 but it is wrong!! The correct answer should be : 11080249 Infact using a trick to calculate the modulo of negative numbers the result is right: Local a = -10225030983111 Local d = 2^24 De...
- Wed Jul 08, 2020 11:51 am
- Forum: Hollywood bugs
- Topic: Problems with big integers and some Hollywood operators
- Replies: 10
- Views: 1723
Problems with big integers and some Hollywood operators
I'm having trobles porting a pure Lua library to implement the HMAC-SHA256 that I need to authenticate requests to communicate with a server, so I started to convert it but when has come the time for a test I got errors and wrong numbers here and there. After long debug sessions I've found several p...