Search found 241 matches

by SamuraiCrow
Tue Jun 27, 2017 2:46 pm
Forum: Newbie questions
Topic: Can I InsertItem Key=Value pair?
Replies: 1
Views: 1172

Re: Can I InsertItem Key=Value pair?

No, you can't. If you look in the documentation before posting you'd see that it's only for arrays. Arrays in Hollywood are just tables with numeric keys only. If you are using a regular table with arbitrary keys it will not work! Try looking at RawSet or else use your own wrapper procedure.
by SamuraiCrow
Tue Jun 27, 2017 6:38 am
Forum: Hollywood bugs
Topic: RapaGUI 1.1 GetEntry method
Replies: 5
Views: 3589

Re: RapaGUI 1.1 GetEntry method

Reduced images:
Image
Image
by SamuraiCrow
Mon Jun 26, 2017 9:21 pm
Forum: Newbie questions
Topic: Can I removeitem table?
Replies: 3
Views: 1669

Re: Can I removeitem table?

After some thoughts, perhaps the first two steps of my suggested solution can be combined by using the second returned value on NextItem.
by SamuraiCrow
Mon Jun 26, 2017 7:24 pm
Forum: Newbie questions
Topic: Can I removeitem table?
Replies: 3
Views: 1669

Re: Can I removeitem table?

The purpose of RemoveItem is to renumber the numerical keys in a Hollywood "array". Assigning the value corresponding to the first key to Nil in a one shot use of an iterator is what you are trying to do, it seems. Use NextItem to get the first key, use item=table[key] to get the value, then use tab...
by SamuraiCrow
Mon Jun 26, 2017 5:28 pm
Forum: Hollywood bugs
Topic: RapaGUI 1.1 GetEntry method
Replies: 5
Views: 3589

RapaGUI 1.1 GetEntry method

I can load a file created with a generator in my Table Editor. The problem is it won't save correctly if an empty node is present. https://github.com/SamuraiCrow/HollyVision-DesignDocument/raw/master/Screenshot%20from%202017-06-26%2008-49-03.png The screenshot above is a successful load after genera...
by SamuraiCrow
Thu Jun 15, 2017 8:17 pm
Forum: Wishlist
Topic: Hollywood JIT
Replies: 5
Views: 3139

Re: Hollywood JIT

by SamuraiCrow
Mon Jun 12, 2017 8:03 pm
Forum: Wishlist
Topic: Const specific for certain variable only.
Replies: 1
Views: 1476

Re: Const specific for certain variable only.

It sounds like you are trying to describe enumerations. C allows some rather complicated uses and abuses of the "enum" keyword. Or perhaps making a const table would be more appropriate using a perfect hash function of some sort. http://cmph.sourceforge.net might be one type of that.
by SamuraiCrow
Wed May 31, 2017 6:50 pm
Forum: General programming
Topic: Lua version used for Hollywood?
Replies: 6
Views: 3662

Re: Lua version used for Hollywood?

After having looked into LuaJIT, I see that it requires Lua 5.1 syntax for variable argument (vararg) formatting. How hard would it be to switch to LuaJIT 2.0.5? If it's easier than I think, it might be practical for a third party (like some friends and I) to write a 68k backend for it. If it's hard...
by SamuraiCrow
Fri May 12, 2017 11:42 am
Forum: Hollywood bugs
Topic: traverse order of ForEach
Replies: 4
Views: 2822

Re: traverse order of ForEach

It's probably an implementation detail. The table structure is based on a data structure called a hash table. In C++11 it is called an unordered map. It stores key-value pairs but has little concept of what the keys are. It only knows how many pairs are in it and iterates through them once each.
by SamuraiCrow
Thu Apr 27, 2017 6:30 pm
Forum: RapaGUI
Topic: Toolbar.Horiz="FALSE" seems not to work for Win32
Replies: 9
Views: 4922

Re: Toolbar.Horiz="FALSE" seems not to work for Win32

p-OS wrote:He is not talking about Hollywood Source Code, but the GUI definiton in the XML file... and there its is meant to be a string. Thus sems ok to me.
In that case, is it all lowercase? XML is case sensitive.