Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import all screens from (other) PETSCII editor #15

Closed
Esshahn opened this issue Jul 20, 2018 · 6 comments
Closed

Import all screens from (other) PETSCII editor #15

Esshahn opened this issue Jul 20, 2018 · 6 comments
Labels
enhancement New feature or request
Milestone

Comments

@Esshahn
Copy link
Collaborator

Esshahn commented Jul 20, 2018

Would be great if we could import the files from the other PETSCII app. They are saved as plain text:

unsigned char frame0000[]={// border,bg,chars,colors
14,13,
224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
32,224,224,224,224,32,32,32,224,224,224,224,32,32,32,224,224,224,224,32,32,224,224,224,224,224,224,224,224,224,224,224,32,224,224,224,224,32,224,224,
32,224,224,224,224,96,32,32,224,224,224,224,223,32,32,224,224,224,224,96,32,224,224,224,224,224,224,224,224,224,224,224,32,224,224,224,224,96,96,224,
32,224,224,224,224,96,32,32,224,224,224,224,224,32,32,224,224,224,224,96,32,224,224,224,224,224,224,224,224,224,224,224,32,224,224,224,224,223,96,224,
32,224,224,224,224,96,32,32,95,224,224,224,224,32,32,230,230,230,230,96,32,198,198,198,198,224,224,232,232,232,232,224,32,95,224,224,224,224,96,224,
32,226,226,226,226,96,32,32,32,32,32,32,32,32,32,32,32,32,32,96,32,32,32,32,96,224,224,224,224,224,224,224,224,224,95,224,224,224,96,96,
32,32,32,32,32,32,32,32,32,32,32,96,96,96,96,96,32,32,32,32,32,32,32,32,32,224,224,224,224,224,224,224,224,224,224,224,224,224,96,224,
32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,224,224,224,224,224,224,224,224,224,224,224,224,96,224,
32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
32,32,32,32,32,32,32,32,32,32,96,96,96,96,96,96,96,32,32,32,32,32,32,32,32,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,15,15,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,12,12,12,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,
0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,15,15,15,15,0,0,0,0,0,0,0,0,1,1,1,1,0,0,1,1,1,1,0,0,0,
0,1,1,1,1,0,0,0,1,1,1,1,0,0,0,12,12,12,12,0,0,0,0,0,0,0,0,1,1,1,1,0,0,1,1,1,1,0,0,0,
5,1,1,1,1,5,5,5,15,15,15,15,5,5,5,11,11,11,11,5,5,1,1,1,1,5,5,1,1,1,1,5,5,15,15,15,15,5,5,5,
14,1,1,1,1,14,14,14,15,15,15,15,14,14,14,12,12,12,12,14,14,1,1,1,1,13,13,15,15,15,15,13,14,15,15,15,15,14,13,13,
14,15,15,15,15,11,14,14,15,15,15,15,5,14,14,11,11,11,11,11,14,1,1,1,1,13,13,15,15,15,15,13,14,15,15,15,15,5,5,13,
14,15,15,15,15,11,14,14,15,15,15,15,5,14,14,11,11,11,11,11,14,15,15,15,15,13,13,12,12,12,12,13,14,15,15,15,15,5,5,13,
14,5,5,5,5,11,14,14,5,5,5,5,5,14,14,5,5,5,5,11,14,5,5,5,5,13,13,5,5,5,5,13,14,5,5,5,5,5,5,13,
14,5,5,5,5,11,14,14,14,14,14,14,14,14,14,14,14,14,14,11,14,14,14,14,11,13,13,13,13,13,13,13,13,13,5,5,5,5,5,5,
14,14,14,14,14,14,14,14,14,14,14,1,1,1,1,1,14,14,14,14,14,14,14,14,14,13,13,13,13,13,13,13,13,13,13,13,13,13,5,13,
14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,13,13,13,13,13,13,13,13,13,13,13,13,13,5,13,
14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
14,14,14,14,14,14,14,14,14,14,1,1,1,1,1,1,1,14,14,14,14,14,14,14,14,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13
};
// META: 40 25 C64 upper
@nurpax
Copy link
Owner

nurpax commented Jul 20, 2018

I did ask around and no clear single format emerged as the most common format to start with.

Maybe support Marq’s C format and the petscii.krissz.hu? Exported .prg files also probably could be loaded.

I guess will have to go with one format at a time, based on user feedback.

@nurpax nurpax added the enhancement New feature or request label Jul 22, 2018
@nurpax
Copy link
Owner

nurpax commented Jul 25, 2018

screen shot 2018-07-25 at 11 11 35 pm

Marq's .c format works for 40x25 images now.

@Esshahn
Copy link
Collaborator Author

Esshahn commented Jul 27, 2018

bildschirmfoto 2018-07-27 um 09 39 45

Successful loading in a screen from Marq's PETCII.
Multiple screens aren't supported yet, right?

@nurpax
Copy link
Owner

nurpax commented Jul 27, 2018

Yeah no multi screen yet. All the imports are single screen for now as I wanted to be able to import into the currently selected screen.

I think import needs some kind of settings pane that can be used to select what to import.

Sent with GitHawk

@nurpax nurpax added this to the 0.2 milestone Jul 27, 2018
@nurpax
Copy link
Owner

nurpax commented Jul 28, 2018

57c9d28 adds .c export too (single screen)

@Esshahn Esshahn changed the title Import files from (other) PETSCII editor Import all screens from (other) PETSCII editor Aug 4, 2018
@Esshahn Esshahn modified the milestones: 0.2, 0.3 Aug 4, 2018
@Esshahn
Copy link
Collaborator Author

Esshahn commented Aug 4, 2018

(changed issue title for clarity)

Done:

  • import single screen from Marq's editor

Open:

  • import all screens that are in a PETSKII file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants