Questions tagged [squirrel]

Squirrel is a high-level object-oriented light-weight scripting language that's designed to be used in real-time requirements applications, like video games.

Official Description:

Squirrel is a high level imperative, object-oriented programming language, designed to be a light-weight scripting language that fits in the size, memory bandwidth, and real-time requirements of applications like video games.

Links:

42 questions
11
votes
2 answers

Please recommend good reading about Squirrel

Please, share your favorite links on this language where one can learn the best of it. And also, please describe in few words the most important features of this language differing it form others languages like Lua. I just cannot understand why to…
avp
  • 4,895
  • 4
  • 28
  • 40
5
votes
5 answers

Electron-forge - An unhandled rejection has occurred inside Forge: [object Object]

Tried to build an electron based app by running npm run make in terminal, everything went fine except when it had to go thru Making distributables. Out folder has been created but app is not bundled in one exe. dependencies in Package.json …
iseiaki
  • 55
  • 1
  • 6
5
votes
3 answers

Creating new classes/members at run-time in scripting languages used in C++

I've been working on this problem off and on for a few months, and now wanted to really come up with a proper solution that will handle the case of creating new user-defined classes (and instances of those classes) with member functions/properties…
Mike Weir
  • 3,094
  • 1
  • 30
  • 46
4
votes
9 answers

Game Engine Scripting Languages

I am trying to build out a useful 3d game engine out of the Ogre3d rendering engine for mocking up some of the ideas i have come up with and have come to a bit of a crossroads. There are a number of scripting languages that are available and i was…
Bob_Gneu
  • 1,591
  • 1
  • 18
  • 30
4
votes
0 answers

Electron : Error on generating Setup for Windows with electron-winstaller on MacOsx

Since I'm using Catalina I'm not able to generate new nupkg and setup.exe with electron-winstaller. I think it's a permission problem but I don't know how to resolve it. Hope someone could help me. Thanks. The error that appears just after the…
3
votes
1 answer

How to react to stack unwinding when destructors are not supported by a language?

Suppose you have created an instance of a Window class. The window is shown to the user. Then, an exception is thrown, and reference to the instance is lost, but the window is still seen by the user because the instance still exists (it's just not…
Gui Prá
  • 5,559
  • 4
  • 34
  • 59
3
votes
1 answer

Electron - Update window message

I am using Squirrel for updates in my app(Electron). And I'm looking for nice way to display release notes. Something like this: Where can I found information about this? How can I make my message window looks like this?
Axel186
  • 541
  • 5
  • 17
3
votes
2 answers

Parse integer in base 10 to base 16 in Squirrel

How should I do base 10 to base 16 integer conversion in Squirrel? In Javascript I can do this with: parseInt("ff", 16). I'm trying to do a HEX color code to RGB calculator for an Electric Imp. #ffaaccwould be split into 3 parts (ff, aa and cc). I…
Sampsa
  • 701
  • 1
  • 5
  • 18
3
votes
1 answer

Scripting language for code blocks

I got code::blocks as my C/C++ compiler along with C++ for dummies, but my only problem is with a obscure scripting language that I have never heard of before; "Squirrel". Is it possible to change the scripting language of code::blocks to something…
2
votes
1 answer

Golang postgresql query with transactions and squirrel

I understand how to use squirrel and transactions separately, but I don't understand how to use them together. When should I rollback or commit? Is my attempt correct or not? If not, where am I wrong... tx, err := db.repo.GetDatabase().Begin() if…
volnistii11
  • 119
  • 8
2
votes
1 answer

Squirrel: How to print without e^?

local MAX = 0.059513641346164345134111361369; print( MAX ); Output: 0.661467 local MAX = 0.000000000000000000000000000001; print( MAX ); Output: 1e-030 I want to display the entire 30 digits after the decimal point.
user3160468
  • 75
  • 1
  • 6
2
votes
1 answer

Electric IMP + PubNub: Agent making extra calls

I'm working on a IoT project that uses Electric Imp and PubNub for communication, and Parse for data logging, cloud code, etc. For some reason my code in the IMP IDE is making multiple calls to PubNub channel, when I only want the event broadcasted…
2
votes
0 answers

Generating API interfacing code for a scripting language from an existing C++ header file

I intend to use Squirrel as a scripting language for my C++ application. Naturally, there should be an API for interfacing with the C++ code (for things such as accessing and modifying attributes in my C++ program). This API would consist of a bunch…
j_schultz
  • 649
  • 13
  • 29
1
vote
0 answers

Electron forge Squirrel installer hanging after trying to run

I am using Electron forge to build an app where we have a server that needs to run on install. I am using Squirrel to package and create an installer (Windows). The installer should run a process that will run forever, but I would like to end the…
1
vote
1 answer

Connect PowerBi to As400

I tried to connect to ODBC with PowerBi using this string connection Driver={Client Access ODBC Driver (32-bit)};System=xxxxx.xxx.xxxxx;libraries=XXXXXX;naming=system;transaction isolation=read committed; Connection is done but i cannot see the…
Marco Bozzola
  • 179
  • 1
  • 3
  • 17
1
2 3