Author Topic: nRaze progresss  (Read 4326 times)

0 Members and 1 Guest are viewing this topic.

Offline njaddison

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 176
  • Rating: +24/-27
    • View Profile
nRaze progresss
« on: February 17, 2012, 04:10:37 pm »
So, far, I have decompiled the swf file, and have tried to extract the actionscript from the swf file. But, I can't find any COMPLETELY free swf to fla converters. I am tired of all of this free trial and free trial limitations shi*t. I am angry that no program I have found is completely free, even if I type in "Free SWF to FLA converters -buy -sell -trial -sale -shop," in google. You can download the fla and the swf file from the link at the bottom if you want to, and open it in your internet browser or adobe flash, but as for the sprites and actionscript, then I will see what I can do to find a completely free converter, and post the files in a zip file.

swf file: https://sites.google.com/site/nelsonaddisoncom/stuff/raze.swf?attredirects=0&d=1
fla file: The file is 35 MB, so I can't upload it.
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/5f42ec78e054645d.png" alt="NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>


Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55847
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: nRaze progresss
« Reply #1 on: February 17, 2012, 04:28:17 pm »
Hmm you might need to post this in the Computer usage and setup section (and rename the title to "I can't find a free SWF to FLA converter" or something like that), because this section of the site is for projects that are already under progress, so it might not be seen much by people who can help on computer stuff.


I used to have such software before but I forgot what it was. It must exist, but it must be hard to find on Google, because almost everything is shareware. X.x

Also question, how are you going to convert a FLA file to tns format? (I assume this is really a calc port of the SWF game you linked to that you want to make, since this is in the TI-Nspire project ideas)
« Last Edit: February 17, 2012, 04:29:59 pm by DJ_O »
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: nRaze progresss
« Reply #2 on: February 17, 2012, 04:52:59 pm »
And how do you want to convert Actionscript to C?
1. Not possible (you said something about Alchemy somewhere, but Alchemy compiles C into Actionscript)
2. If it would be possible, a lot of porting work would be required to make it run on the Nspire.

Have you ever programmed in C?
You have many huge project ideas, but I haven't seen anything programmed by you yet.

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55847
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: nRaze progresss
« Reply #3 on: February 17, 2012, 04:55:41 pm »
Unless there's a software allowing running Flash stuff on the Nspire? (although then I wonder why converting to FLA is required)

But even then, this game seems rather complex and has a lot of options, so I'm unsure if it would be possible, not to mention it wouldn't even fit at all on older models.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline njaddison

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 176
  • Rating: +24/-27
    • View Profile
Re: nRaze progresss
« Reply #4 on: February 18, 2012, 01:09:40 pm »
The reason for all of this is this:
I want to see the action script so that I can get a good idea of what I need to do in c, so the game won't be that different from the real one.

The reason I am converting it to an fla file is so that I can get all of the sprites and backgrounds, and use them in the project. I have found that the file size is large, so I will have to lessen the quality of the graphics. My friend has some software that can deflate the file size of pictures by making the pixels larger. I could do this without his software. Currently, I have no idea how to use color or images in c, just the same old DOS exe files compiled from a c script. I can't find any tutorials on how to use color or images in c scripts, only in C++ scripts. So, this isn't going to be a walk in the park, or a 5 week project. It's probably going to take a month or two, just like ndless did.

Currently, I am trying to make the sprites smaller. I know that actionscript to c isn't possible, because the two languages are very different because flash and DOS are two different things. I will probably have to do a manual conversion of the actionscript, and find a image loader in c to load the images to the file. If command prompt can be ported to the nspire, then this might be easier than I thought, because, this is my first project in nspire c.
« Last Edit: February 18, 2012, 01:16:53 pm by njaddison »
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/5f42ec78e054645d.png" alt="NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>


Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: nRaze progresss
« Reply #5 on: February 18, 2012, 02:05:10 pm »
Just want to make some things clear.
1)
The method of drawing images to the screen depends of the platform you are running your program on, and not the language.
So drawing something on the screen is different than drawing it on the nspire. Although, if hoffa finishes the SDL port, then programs using SDL on the computer will use the same methods as drawing stuff with SDL on the calculator.
You can use nRGBlib for now
2)
I don't see why you are comparing actionscript and c to flash and DOS.
C is a language, DOS is a platform and has not much to do with C.
Actionscript is very similar to javascript (infact, its a dialect of ecmascript), which in turn means that there are quite some similarities with it and C.
But now, it are the libraries and functions that count, not the language ;)

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55847
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: nRaze progresss
« Reply #6 on: February 18, 2012, 02:19:51 pm »
Actually from experience in Actionscript you can pretty much program entire games as you would do in C, except I think it's much higher level, so I wonder if there are stuff in C that might be much harder (if not close to impossible) to do than in actionscript. For example try to make a floating point-based math program in z80 ASM or Axe v0.1.5 without using a single different language routine. You'll have a much harder time than in BASIC.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline njaddison

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 176
  • Rating: +24/-27
    • View Profile
Re: nRaze progresss
« Reply #7 on: February 18, 2012, 09:55:48 pm »
Where can I download nRGBlib?
Edit: I found the download link.. never mind.
« Last Edit: February 18, 2012, 10:00:42 pm by njaddison »
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/5f42ec78e054645d.png" alt="NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>


Offline njaddison

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 176
  • Rating: +24/-27
    • View Profile
Re: nRaze progresss
« Reply #8 on: February 18, 2012, 10:39:20 pm »
Sorry for double posting, but here's what I have been doing:
I have only done this much because I am going to have to make the sprites over again with nRGBlib. This is going to take a while...
Code: [Select]
#include <C:\Users\TAddison\Downloads\nRGBlib-v0.2\nRGBlib\src\include\nRGBlib.h>
#include <C:\Users\TAddison\Downloads\nRGBlib-v0.2\nRGBlib\src\include\nCOMMON.h>
#include <C:\Users\TAddison\Downloads\nRGBlib-v0.2\nRGBlib\src\include\nGEO.h>
#include <C:\Users\TAddison\Downloads\ndless-v3.1-beta-r547\ndless-v3.1-beta-r547\src\include\os.h>
#include <C:\Users\TAddison\Downloads\ndless-v3.1-beta-r547\ndless-v3.1-beta-r547\src\include\common.h>
//This is the helmet sprite
{
    drawLine_(x1, y1, x0, y1)
    drawLine_(x0, y1, x1, y3)
    drawLine_(x1, y3, x4, y3)
    getchar;
    return 0;
}
I am not finished with the helmet, yet. I need someone to check the syntax of this for me.
You have to have the .h files to check the syntax. I'll post them if you don't have them.
« Last Edit: February 18, 2012, 10:46:15 pm by njaddison »
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/5f42ec78e054645d.png" alt="NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>


Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55847
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: nRaze progresss
« Reply #9 on: February 18, 2012, 11:34:51 pm »
I moved this to the C section since this seems more like an help thread than a regular project updates thread.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline totorigolo

  • LV2 Member (Next: 40)
  • **
  • Posts: 24
  • Rating: +9/-0
    • View Profile
Re: nRaze progresss
« Reply #10 on: April 20, 2012, 06:28:31 pm »
I don't know if you are still on this project, but I've just discovered it. You should have said me that you were using nRGBlib :)

If you want images in your program, you can use the last nRGBlib version to have them. However, I didn't understand your previous code.
nRGBlib - A portable graphic library for Nspire !