Forum Replies Created
- 
		AuthorPosts
 - 
		
			
				
[/crayon]Monkey12345678910111213141516171819202122232425262728293031323334353637383940414243[crayon-5cba9cdb34a98936959030 inline="true" ]port "<std>"Using std..Function DecimalToHex:String(dec:Int)If(Not dec) Then Return "00"Local dic:String = "0123456789ABCDEF"Local hex:String = ""While(dec)Local bits := dec & $fLocal hi := String.FromChar(dic[bits])hex = hi + hexdec = dec Shr 4WendReturn hexEndFunction DecimalToBin:String(dec:Int)If(Not dec) Then Return "0"Local bin:String = ""While(dec)bin = String(dec & 1) + bindec = dec Shr 1WendReturn binEndFunction Main()Print(DecimalToHex(26))Print(DecimalToBin(5))End
Good job Adam! I didn’t think about putting the glyph class inside the font class but I like it.
Thanks Mark!
I think It works with any program that produces the angel code font format, as long as it’s one page atlas. it’s not set up to work with multiple pages as Glyph Designer only produces a single page. so I can’t test it other wise I would set it up for multiple pages.
As usual I feel stupid. I still don’t get why it goes beyond one and not with the other. I don’t see why the while don’t exit if j >= to line[i].Length. to my understanding it should exit regardless of what follows. Don’t worry i am known to have this kind of moments.
Thanks.
about reading past the end of the line,it’s not.
if I replace line 27:
s += String.FromChar(lines[i][j])
with this:
s += lines[i].Mid(j,1)
it works fine.did you download and run the code?
your code doesn’t do what I want to do.the problem with my code is that it reads the line and outputs the result but at the end of the line it adds some extra characters, characters that are not in the text file. the picture shows that the last 5 or four characters at each of the lines are extra:

if you compare the output with the txt file you will notice that it does not contain “{char” at the end of each line of the “.fnt” file.if I replace line 27 with this:
s += lines[i].Mid(j,1)
it works fine.haha!
I had original missed where you mention to update the mx2cc.yea, that solved the problem.
Thanks.
Ok, Thanks anyway.
this is what I got:
I am on OS X 10.11.6
Configured with: –prefix=/Applications/Xcode.app/Contents/Developer/usr –with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.6.0
Thread model: posixit’s the newest update I can get.
@Mark, Thanks.
@Cole Chapman
Thats it. Thanks, that eases my worries.@nerobot it’s just a dummy variable not use for it at all. weird that it can fix the error just by having it there.
September 8, 2016 at 4:32 pm in reply to: [SOLVED in 1.07] Error on Mac -> Rebuild Modules – > Android -> Truetype #3780..
> Are you will to do it again?
yes, when ever you want.I played it without controls. Didn’t bother to pull my controller from the box where I have all of my computer stuff so I used the keyboard.
here is a link to the Mac binaries:
https://www.dropbox.com/s/7cdbqrmls0euhuj/Monkey%202%20Game.app.zip?dl=0I tried it and it works good. I didn’t have any problems on my Macbook. I was never a big fan of Chop Lifter but from what I tried it seems pretty good. No issues with sound. Tried it About 30 minutes.
…Well, I don’t know what happened for sure but I just did an update with a restart that I have been postponing for days and now it seems fixed.
Thanks, I didn’t know about Activity Monitor. Shows you how much I know about OS X.
 - 
		AuthorPosts