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
1
vote
0 answers

Join clause in delete query with squirrel/PostgreSQL

I'm using the squirrel (github.com/Masterminds/squirrel) statement builder tool and Postgres DB. Vendor and Vendor_Location are the two tables we have. Both tables are linked by the vendor_no attribute. I need to delete information from Vendor…
1
vote
0 answers

Dynamically expose C api to squirrel

I have this C function bool gfx_draw_line(float x1, float y1, float x2, float y2, int r, int g, int b, int a) { bool success = true; // draw line... return success; } I want to expose it to squirrel, but I have to manually create a…
aganm
  • 1,245
  • 1
  • 11
  • 30
1
vote
2 answers

Is there any functions like "require" in Squirrel-lang?

I try to import some package using "require"... because of the Squirrel-lang coming from Lua. But I found that both there is nonthing in both "squirrel3" and "sqstdlib3".. So I do it like this : // foo.nut local foo = {} return foo //…
Lunoctis
  • 13
  • 2
1
vote
2 answers

Recurse directory in squirrel

Is it possible to examine the contents of a directory in squirrel? I need a list of file names, including their paths, in a given directory and its subdirectories. I'm writing a script for use in Code::Blocks, which uses squirrel as a scripting…
Christoph
  • 1,040
  • 3
  • 14
  • 29
1
vote
1 answer

if statement stuck in loop, how to run it only once?

I'm creating a system that will send texts every time a temperature sensor goes outwith the limit. I need this text to only be sent once but it keeps sending. Code: if(temp > (userTemp + 5.00)) { ledState2=1; device.send("led2",…
Greg Stewart
  • 49
  • 1
  • 7
1
vote
1 answer

Finding an empty slot in array and using it

So I have a problem that I have been messing with for a while in Squirrel. I want to create something that goes through everything inside an array, e.g: local array = [1, 2, 3, -1, 5, -1, 7, -1]; and look for those that are -1, I want to use just…
Rolandd
  • 11
  • 1
  • 4
0
votes
0 answers

Problem building c# Application using Squirrel

I am working on an application that does some of my office works. It was working fine. I used Squirrel to update and deploy the application. However, It was okay until my application was 1.1.6. After that, from 1.1.7, my application is not updating.…
Pranto
  • 1
  • 2
0
votes
0 answers

How to open a connection to an encrypted MS ACCESS db from Squirrel SQL Client

I want to open an encrypted MS ACCESS (.accdb) database in Squirrel SQL Client Version 4.5.1. I tried this doc: Link to an example I could create the CryptCodecOpener.class but when I try to connect I get the following Error: XXXX: JDBC Driver class…
Jens
  • 45
  • 5
0
votes
0 answers

How to close SQuirreL connection without closing session?

I establish a connection to an h2 database via SQuirrel SQL Client (version 4.5.1). The driver used is "H2 embedded". In the menu I found an item called "Reconnect". Is it possible to disconnect and reconnect (using the menu item mentioned) after…
sandromo
  • 1
  • 2
0
votes
0 answers

Squirrel-C# SquirrelAwareApp HandleEvents OnInitialInstall event NEVER called

im beginner with Squirrel tool. I´m programming a simple C# app in visual studio and im doyng his installe with Squirrel, the problem is that the SquirrelAwareApp HandleEvents is not working. The only method that is work is the onFirstRun event. The…
0
votes
0 answers

Electron autoUpdater Error: Update check failed. The server sent an invalid JSON response

I am implementing auto update feature for my Electron app. I am encountering an error: [Error: Update check failed. The server sent an invalid response. Try again later.] { code: 6, domain: 'SQRLUpdaterErrorDomain' } This error is thrown from…
Wenwu
  • 45
  • 6
0
votes
0 answers

Can we use alias in subselect as value

Why cant I use alias name as value in where clause in subquery. Is there another way to use alias in similar way in this example? SELECT tm.att1 as aliasName1, tm.att2 as aliasName2, CASE WHEN tm.att3='A1' THEN 'A' WHEN tm.att3='B1' THEN 'B' ELSE…
0
votes
1 answer

How can i make sure a path exists in quirrel

I want to create files in custom subfolders in quirrel (squirrel fork). I have this example code local function saveToFile(subfolder_name, file_name, content) { local path = $"folder/{subfolder_name}/{file_name}" local file = io.file(path,…
0
votes
1 answer

Squirrel creating and executing all EXE files in package

We have a new Squirrel package which contains our C# executable (.Net Core 3.0) and the open source NSSM (3rd party EXE). Just having this EXE present causes it to 1 - get a shortcut and 2 - be executed by Squirrel which is trying to be helpful. …
James Harcourt
  • 6,017
  • 4
  • 22
  • 42
0
votes
1 answer

Squirrel 4.0.0, error at the opening of the session

I'm working since few days on a new PC on windows 10. I have just install first, Java version 1.8 and second, Squirrel version 4.0.0 via Java on windows cmd. I have created all the alias needed, and I have tested the connection => OK enter image…
Loïc
  • 1