Forum Replies Created
- 
		AuthorPosts
 - 
		
			
				
abakobo, I tried the docs link, yes, it is in there and many more. Good, I am writing a Monkey2 reference page for myself step by step, that helps a lot, thanks.
I cannot find any reference to conditional expressions in docs. Is it hidden somewhere in there?
I am back. Python not good. Dynamically typed languages not good for me. I am going to try Monkey2 for a while.
@peterigz, I appreciate your work on providing the SpeceCraft tutorial. The monkey2-exmples-github is a great idea, but I need to examine the core parts, especially: io, json, xml. I just tried to avoid Java. I will take a look at Python on Sunday. I think it is better for me to be back for Monkey2 around Christmas time; Monkey2 train is still faster than the passengers
Hi Ethernaut,
I used the binary version of Monkey2-v1.1.05.
Picking two examples: CivClone01 and Beginners – Proceed, I get this error:
***** Fatal mx2cc error *****
Internal mx2cc build errorAbout this:
https://github.com/peterigz/Monkey2Tutorials
My bad, I should install the two modules. However, since my intention was to test menkey2’s core, I totally ignored the fact that that tutorial need related modules being installed.
What else is needed to be done, after binary installation, to make “Beginners – Proceed” to work?
SpaceVan with 2D world editor, just for fun and testing features.
Examples and game tutorials are less important than simple examples in the documentation itself. The reason is that if you want to know about a command in a tutorial or samples, you have to search through many lines and many include files. You don’t want to do that. All you want is to see how a command is used, that’s all. Examples in documentation are the most important part of learning Monkey2, otherwise, Monkey2 will belong to elite programmers and the rest will be their slaves.
Thanks for all your help. This was for my Premier League software. Since PL will end soon, I got to finish it very soon. As my learning Monkey2 is slow, I will go back to Java or BlitzMax. I will convert my codes to Monkey2 in summer (for the next season of PL).
Thanks abakobo, I keep in mind.
Yes impixi, for the text file version, I get memoey access error when I use anything other than DesktopDir(). Unlike the above simplified binary examples, using AssetsDir() fails. There is a CurrectDir() as well, same problem. Don’t know what is going on. Do I doubt myself or Monekey2
No project can begin without io system. Buying and using veterans’ libraries or frameworks, no way. Fundamentals must work and clearly documented first. Double thanks to you impixi
Monkey12345678910111213141516171819202122import "<std>"#Import "assets/"Using std..Function Main()local url:= DesktopDir() + "textfile.txt"local text_file:= FileStream.Open(url ,"r")If Not text_filePrint "no file, creating: "SaveString("test", url, true)End Iftext_file.Close()Print "Done"EndThanks!
I said perfectly? May be not, but not your fault. It gives me strange behavior for different read and write locations. HOWEVER, I am using the binary version of mx2, which is very old. I will compile the latest version tomorrow to test my codes again.
for write:
Monkey123456789101112131415161718192021222324#Import "<std>"#import "assets/"Using std..Function Main()Local url:= AssetsDir() + "file.dat"Local file:=FileStream.Open(url, "w")If Not filePrint "Something wrong"returnEnd IfLocal write_this:String = "String 1, String 2"file.WriteString(write_this)file.Close()Endfor read:
Monkey123456789101112131415161718192021222324#Import "<std>"#import "assets/"Using std..Function Main()Local url:= AssetsDir() + "file.dat"Local file:=FileStream.Open(url, "r")If Not filePrint "Something wrong"returnEnd IfLocal read_it:Stringread_it = file.ReadString()file.Close()EndNevertheless, it seems I am progressing.
To impixi, it works perfect in my Windows 8 machine. Thanks a bunch! I will study your code to correct mine.
Good to see Monkey is being used for sequencer, 2%, very good. Before buying EZ Drummer, I had Hydrogen installed to run a metal track to play along. It helps finish a day of work. However, I still do not see any rock/metal drum and bass sequencer for practice. One day I thought using JUCE to code one for myself, then I put the idea aside. If SDL is in Monkey2, why not JUCE? JUCE is in C++, I think SDL is in C, though.
Thanks, I used it to get familiar with monkey2 before trying, now that I have involved coding with it and seeing doc is not ready yet, I see how important those examples are.
 - 
		AuthorPosts