Forum Replies Created
-
AuthorPosts
-
well, I deleted the int, float and string classes and I was able to keep using the module. But I still don’t know why the error. as all I did was just remove those three classes and it worked. no other code edit on any of the other files.
I am trying to isolate the code to post it but everything seems to work good. I can’t duplicate the error with the code I wrote. It’s working fine. I can’t understand is why the error now and why in those files because I am not using Int, Float or string Deque and it shouldn’t be a reason to point out those errors.
Sorry Mark it tells me method super.new() in the extended type is undeclared:
/Users/ayoitseve/Desktop/monkeypatrol/src/deque.monkey2 [209] : Error : Can’t find overload for ‘new(…)’ with argument types (string[])
/Users/ayoitseve/Desktop/monkeypatrol/src/deque.monkey2 [198] : Error : Can’t find overload for ‘new(…)’ with argument types (float[])
/Users/ayoitseve/Desktop/monkeypatrol/src/deque.monkey2 [187] : Error : Can’t find overload for ‘new(…)’ with argument types (int[])I would but I don’t have it anymore. it doesn’t come with the latest version of MX2.
I have a similar problem with the mouse. on my MacBook with the latest os. when trying to drag the slider along the bottom of the editor window, if I press the mouse on the slider on the lower part of the slider the whole editor window moves. I have to be careful always to drag from the upper part of the slider. kind of annoying.
I haven’t looked into it but I assume hats how you pass those values to the window class.
and for your information you don’t need to use “Super” for the New method unless you have a “New” method in the extended class. you do on the OnWindowEven so as not to confuse the one in the extended class from the window class.
Ha Ha ha, I clicked on Download and and it denied me but I was able to download by clicking on “Module Manager” and selecting available.
[Edit]
Edited and fixed!
Well, I kept getting an error when create stores of new classes and I couldn’t figure out what the problem was until now. it appears that I have to create a simple new method on the “T” class or it fails to compile. I am posting this for anybody that runs into this problem.
Will do. Thanks.
Thanks Olejr! that appeared to have solved it.
My question now is. Shouldn’t monkey be able to detect that?
I don’t think it’s a good idea to create a pixmap and an image from the pixmap every frame specially of that size. Creating the pixmap, clearing it, and converting it to an image are very intense operations.
How do you paste code?
Click on the “<>” above the posting box. Just enter the code don’t click on anything and press Add.
I alternatively figured it out with a minor change:
Monkey1234567891011121314Function Main()For Local i:Int = 0 Until 20Local car := carStore.GetItem()list.AddLast(car)NextLocal link := list.FirstNode()While link.Value <> NullPrint "ok"Local storeObject :=Cast<StoreObject>(link.Value)link = link.SuccWendEnd functionthis works as expected.
OK Thanks Peter. I don’t get the need of Pred and Succ anymore. I guess I have a lot of re coding to do now.
Personally I don’t think that’s a better way. i hate the fact that it goes trough a lot of processes in the background. I think the direct approach was better.
never mind it’s now Pred Succ
-
AuthorPosts