mrmiguu Posted July 3, 2011 Author Share Posted July 3, 2011 This was coded in the terrible, terrible language of terrible C# (using XNA 4.0). Use it as reference for appropriate RMVX autotiling.**Directions: Left click to place a tile and right click to delete a tile.****Also, load the compiled EXE from the _…\AutoTile\AutoTile\bin\x86\Release\_ folder.**This code should only be used as reference.Data: [32x32 tiles generated: 47 total]**(Updated) Tiles will now attach to the map edges to create a 'seamless' feel.**[AutoTile.exe (+src)](http://173.55.168.4/AutoTile.zip) Link to comment Share on other sites More sharing options...
Rithy58 Posted July 3, 2011 Share Posted July 3, 2011 Does this work the same way as RPG Maker XP/VX?Sincerely,Rithy Link to comment Share on other sites More sharing options...
mrmiguu Posted July 3, 2011 Author Share Posted July 3, 2011 @Rithy58:> Does this work the same way as RPG Maker XP/VX?> > Sincerely,> RithyVX is different from XP, if I'm not mistaken. VX uses A, B, and C. XP uses A, B, C, and D.tl;dr: It's more condensed. Link to comment Share on other sites More sharing options...
Rithy58 Posted July 3, 2011 Share Posted July 3, 2011 Yeah, it does. But what I meant was is it the same your VB6 one?I learned a lot from it but it's not the same as RPG Maker XP/VX.I'm on a 64 Bit Machine =[Sincerely,Rithy Link to comment Share on other sites More sharing options...
Rithy58 Posted July 3, 2011 Share Posted July 3, 2011 Yeah, it does. But what I meant was is it the same your VB6 one?I learned a lot from it but it's not the same as RPG Maker XP/VX.Sincerely,RithyEDIT: o.o umm something happen. Shouldn't there be like a delete post button or something? Link to comment Share on other sites More sharing options...
mrmiguu Posted July 3, 2011 Author Share Posted July 3, 2011 @Rithy58:> Yeah, it does. But what I meant was is it the same your VB6 one?No. This one is a lot more complex in comparison. Also, this one renders during the FixedTime loop (calculating at 60 frames per second). The concept is here. To optimize it, like Robin said, you must pre-render the tiles then literally just draw those to the screen (to avoid active-calculations).@Rithy58:> I learned a lot from it but it's not the same as RPG Maker XP/VX.It wasn't. I picked up that method from some site online. This new autotiler does the job more adequately.@Rithy58:> Oh and btw, I think you broke the link.Fixed. Link to comment Share on other sites More sharing options...
Rithy58 Posted July 3, 2011 Share Posted July 3, 2011 I wish you program this in VB6.Or atleast in Java.Sincerely,Rithy Link to comment Share on other sites More sharing options...
mrmiguu Posted July 3, 2011 Author Share Posted July 3, 2011 @Rithy58:> I wish you program this in VB6.> Or atleast in Java.(C# == Java). If you want to look at the source, you can through Notepad. Just open Xna.cs with Notepad and you can see what I've done. It's not that different from VB6 and it's equally similar to Java-code. Link to comment Share on other sites More sharing options...
Rithy58 Posted July 3, 2011 Share Posted July 3, 2011 I knew C# is similar to Java, and I know I can see the code but I can't run it because I'm on a 64-Bit machine. If it was in Java, we wouldn't have this problem ;)Anyway, I'm gonna download VC# 2010, will that work?EDIT: Apparently, not. What version of VC# did you use?Sincerely,Rithy Link to comment Share on other sites More sharing options...
mrmiguu Posted July 3, 2011 Author Share Posted July 3, 2011 @Rithy58:> I can't run it because I'm on a 64-Bit machine.Sure you can. You got an on-board graphics card? If so, just change the setting to **Reach** instead of **HiDef**.@Rithy58:> What version of VC# did you use?Visual Studio C# Express 2010. Link to comment Share on other sites More sharing options...
cheatking Posted July 3, 2011 Share Posted July 3, 2011 Yea it does indeed work on x64 -_-'Seems to work well the one thing I would change would be to make it 'attach' to the edge of the screen. Link to comment Share on other sites More sharing options...
mrmiguu Posted July 3, 2011 Author Share Posted July 3, 2011 @Mr.:> make it 'attach' to the edge of the screen.Does RMVX do that?EDIT::RMVX apparently does. Going to fix that :DEDIT::EDIT::Fixed. Updated. Cleaned. Link to comment Share on other sites More sharing options...
Rithy58 Posted July 3, 2011 Share Posted July 3, 2011 @MrMiguu:> Sure you can. You got an on-board graphics card? If so, just change the setting to **Reach** instead of **HiDef**.~~Umm, okay. I'll try. Not sure how but I'll find out. Thanks.~~EDIT: I got it. Wow! Very nice! This will help me ALOT!@MrMiguu:> Sure you can. You got an on-board graphics card? If so, just change the setting to **Reach** instead of **HiDef**.> Visual Studio C# Express 2010.~~I thought so. I downloaded the 2008 and it said the project file is made with newer version.When I open it with 2010, it said it doesn't support .contentproj~~EDIT: I installed XNA 4.0 and that help.Sincerely,Rithy Link to comment Share on other sites More sharing options...
mrmiguu Posted July 3, 2011 Author Share Posted July 3, 2011 @Rithy58:> Umm, okay. I'll try. Not sure how but I'll find out. Thanks.Download the latest release of AutoTile. I recently uploaded it with 2 fixes and 1 change:[FIXES]- Set the project automatically to **Reach**. Should work for most users now.- Altered code to allow tiles at the edge of the map/screen to 'attach' (thank Mr. Sean) for a 'seamless' feel.[MODS]- Made backbuffer default to **Color.Black**.@Rithy58:> I thought so. I downloaded the 2008 and it said the project file is made with newer version.> When I open it with 2010, it said it doesn't support .contentprojWhy wouldn't I use the latest VS?EDIT::Lolololololol. Forgot to mention that installing XNA was kind of necessary… Link to comment Share on other sites More sharing options...
Rithy58 Posted July 3, 2011 Share Posted July 3, 2011 Downloading the latest version now, even though I got everything working.This is amazing though. I really really appreciate it. I probably should code it myself so I actually learn but this is way out of my knowledge. The algorithm and everything is not easy to do. Thank you so much.Sincerely,Rithy Link to comment Share on other sites More sharing options...
mrmiguu Posted July 3, 2011 Author Share Posted July 3, 2011 @Rithy58:> this is way out of my knowledge. The algorithm and everything is not easy to do.It actually is very simple. It becomes tedious once you learn how it works. I literally drew out 47 tile combinations to work with various setups in regards to different layouts within a 1-tile perimeter of the origin. The tile located at the origin adapts based on different combinations of the 8 tiles immediately surrounding it. Link to comment Share on other sites More sharing options...
Rithy58 Posted July 3, 2011 Share Posted July 3, 2011 @MrMiguu:> It actually is very simple. It becomes tedious once you learn how it works. I literally drew out 47 tile combinations to work with various setups in regards to different layouts within a 1-tile perimeter of the origin. The tile located at the origin adapts based on different combinations of the 8 tiles immediately surrounding it.I know what you mean. This is how I want to do it.Sincerely,Rithy Link to comment Share on other sites More sharing options...
mrmiguu Posted July 3, 2011 Author Share Posted July 3, 2011 My constant selection rectangles are not quite accurate. I don't know what Enterbrain did but they got it just right to work with larger objects within the tiles such as mountains for dynamic placement. Link to comment Share on other sites More sharing options...
Rithy58 Posted July 3, 2011 Share Posted July 3, 2011 @MrMiguu:> My constant selection rectangles are not quite accurate. I don't know what Enterbrain did but they got it just right to work with larger objects within the tiles such as mountains for dynamic placement.Well, for the XP version, I edited your rectangle constants to match the correct tiles and it work perfectly(I think it work perfectly.Can I post it up so other can see it? All credits will go to you.Sincerely,Rithy Link to comment Share on other sites More sharing options...
mrmiguu Posted July 4, 2011 Author Share Posted July 4, 2011 @Rithy58:> Can I post it up so other can see it? All credits will go to you.Sure. It's not the same system though. It's what tIDE uses for their autotiling system. Link to comment Share on other sites More sharing options...
Kemerd Posted July 8, 2011 Share Posted July 8, 2011 It doesn't do anything when I run the compiled .exe Link to comment Share on other sites More sharing options...
Rithy58 Posted July 9, 2011 Share Posted July 9, 2011 @Kemerd:> It doesn't do anything when I run the compiled .exeNo Game Window of any kind?Or maybe it required XNA.Sincerely,Rithy Link to comment Share on other sites More sharing options...
Snaptothegrid Posted August 25, 2011 Share Posted August 25, 2011 Hey amazing implementation you did there Mr.Miguu!I was in the middle of the programming of an as3 tile engine when i suddently found it.I already ported it to as3 and it works like charm.So how about the wall tiles? I can see in VX walls also have some autotile algorithm, but it differs from the terrain tiles for the 'wall' part of the wall.I mean, the walls tilesets (A3, A4) are 2 cells largerTerrain:xo****Wall:xo****++I can see both parts (* and +) are autotiled, but i cant manage to find the correct algorithm for the ++ tiles…Any ideas? Link to comment Share on other sites More sharing options...
mrmiguu Posted August 25, 2011 Author Share Posted August 25, 2011 @Snaptothegrid:> Hey amazing implementation you did there Mr.Miguu!> I was in the middle of the programming of an as3 tile engine when i suddently found it.> I already ported it to as3 and it works like charm.> > So how about the wall tiles? I can see in VX walls also have some autotile algorithm, but it differs from the terrain tiles for the 'wall' part of the wall.> > I mean, the walls tilesets (A3, A4) are 2 cells larger> Terrain:> xo> **> **> Wall:> xo> **> **> ++> > I can see both parts (* and +) are autotiled, but i cant manage to find the correct algorithm for the ++ tiles…> > Any ideas?I would have to sit on it and think it over. I'll get back to you. Link to comment Share on other sites More sharing options...
Snaptothegrid Posted August 25, 2011 Share Posted August 25, 2011 Thanks for the reply, take your time, not in a hurry here! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now