Author Topic: AM-Builder tutorial ?!  (Read 5925 times)

Sebiohazard

  • Full Member
  • ***
  • Posts: 78
    • View Profile
AM-Builder tutorial ?!
« on: February 08, 2022, 06:55:14 PM »
Hello everyone !

I discovered AM-Builder here but I don't understand how it works... where can I find a tutorial to create a custom theme ?

Greetings !

Mark Norville

  • Sr. Member
  • ****
  • Posts: 233
    • View Profile
Re: AM-Builder tutorial ?!
« Reply #1 on: February 08, 2022, 08:00:48 PM »
As you do not speak English natively, I will keep it very simple.

You will NEVER have manuals on how to do anything. You have the WIKI https://github.com/mickelson/attract/wiki but that is all.

Software does not come with manuals.

Regards

Mark (No manuals included)
« Last Edit: February 08, 2022, 08:09:57 PM by Mark Norville »
Well I am back a new PC I7 4790K, 780 TI, 16 Gigs, Windows 10. Hopefully will get delivered at weekend.

Computer Specs : I7 3770K, 780 TI, 16 Gigs, Win 10
HD Specs : 1 x 1 TB SSD + 4 x 8 TB = 33 TB (fullish)
First system : ZX81 (Yes I am an old fart)
PS Network : MarkNorvile
Xbox : Mark Norville

Sebiohazard

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Re: AM-Builder tutorial ?!
« Reply #2 on: February 08, 2022, 09:45:44 PM »
Hello thank you for your answer !

I can't get it to work... is there any other program to create themes for Attract Mode ?

Greetings !

Mark Norville

  • Sr. Member
  • ****
  • Posts: 233
    • View Profile
Re: AM-Builder tutorial ?!
« Reply #3 on: February 08, 2022, 09:59:56 PM »
If you look at the Wiki, it gives you very basic instructions on the Squirrel programming language.

You do not have software/programs to create skins.

The best way of learning, is to look at the layout.nut file and see how that works, you can adapt a lot of skins from there to create your own.

Some skins are more complex than others, but there are skins that are pretty basic, if you have a little bit of knowledge.

Regards

Mark
Well I am back a new PC I7 4790K, 780 TI, 16 Gigs, Windows 10. Hopefully will get delivered at weekend.

Computer Specs : I7 3770K, 780 TI, 16 Gigs, Win 10
HD Specs : 1 x 1 TB SSD + 4 x 8 TB = 33 TB (fullish)
First system : ZX81 (Yes I am an old fart)
PS Network : MarkNorvile
Xbox : Mark Norville

Sebiohazard

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Re: AM-Builder tutorial ?!
« Reply #4 on: February 08, 2022, 10:14:19 PM »
Hello !

No, I don't have any knowledge... it's a pity that it's not accessible for beginners like me... on HyperSpin there is a program on Windows called Hyper Theme which makes it easy to create (even for me loooooooool) themes.

Can-be that in the future this will be possible for Attract Mode?! Because I don't like HyperSpin 8)

Mark Norville

  • Sr. Member
  • ****
  • Posts: 233
    • View Profile
Re: AM-Builder tutorial ?!
« Reply #5 on: February 08, 2022, 10:17:47 PM »
I am only a user, I am not connected to the programming staff for AM.

Yes I have used HyperTheme in the past when I used HyperSpin.

You can create skins using HyperTheme and then transfer them into Attract Mode. If you do a search of the forum, there should be some guides on how to do this.

Regards

Mark
Well I am back a new PC I7 4790K, 780 TI, 16 Gigs, Windows 10. Hopefully will get delivered at weekend.

Computer Specs : I7 3770K, 780 TI, 16 Gigs, Win 10
HD Specs : 1 x 1 TB SSD + 4 x 8 TB = 33 TB (fullish)
First system : ZX81 (Yes I am an old fart)
PS Network : MarkNorvile
Xbox : Mark Norville

Sebiohazard

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Re: AM-Builder tutorial ?!
« Reply #6 on: February 09, 2022, 05:34:23 PM »
Hello, I found this discussion on the subject here...

Just a question... with which program this beautiful & large collection of themes here was made ?!

Greetings !

squareboy

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: AM-Builder tutorial ?!
« Reply #7 on: February 09, 2022, 08:15:02 PM »
Hello everyone !

I discovered AM-Builder here but I don't understand how it works... where can I find a tutorial to create a custom theme ?

Greetings !

Yes, it seems somewhat difficult to use.  However if you download this: https://github.com/liquid8d/am-builder/raw/master/extras/am-builder.zip

... drag it to the AM-Builder (do not decompress). It is a pre-made layout.  It may help you see how the builder works.
Then you can press the "View Code" button to see code, and try and understand the functions. 

I found it on the Attract Mode Builder github page: https://github.com/liquid8d/am-builder/blob/master/README.md

I hope this helps.



jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: AM-Builder tutorial ?!
« Reply #8 on: February 10, 2022, 06:16:03 PM »
ok here is my basic rundown an am builder  so if you do a quick bg, and add a snap,   i edidit way down, because it is virtually, adding everything not being used also to the script,   but here is am builder, 
Code: [Select]
local props = {"Standard (4x3)":{
"background":{"x":0,"y":0,
"file_name":"pixel.png""width":1920,"height":1080,}


"AMArtwork2":{
"file_name":"snap","x":240,"y":160,"width":100,"height":100,
}

}}

// Find correct aspect
function findAspect( ratio ) {
    if ( ratio == 1.77778 ) return "HD (16x9)"
    else if ( ratio == 1.6 ) return "Wide (16x10)"
    else if ( ratio == 1.33333 ) return "Standard (4x3)"
    else if ( ratio == 1.25 ) return "SXGA (5x4)"
    else if ( ratio == 0.625 ) return "Wide Vert (10x16)"
    else if ( ratio == 0.5625 ) return "HD Vert (9x16)"
    else if ( ratio == 0.75 ) return "Standard Vert (3x4)"
    //use default aspect
    print("Unrecognized or missing aspect, using default: Standard (4x3)")
    return "Standard (4x3)"
}

local aspects = ["Standard (4x3)","Standard Vert (3x4)","SXGA (5x4)","Wide (16x10)","Wide Vert (10x16)","HD (16x9)","HD Vert (9x16)"]
local aspect = findAspect( ScreenWidth / ( ScreenHeight * 1.0 ) )


// Create AM Objects
local background = fe.add_image( "resources/" + props[aspect]["background"].file_name, 1, 1, 1, 1)
 foreach( key, val in props[aspect]["background"] )   
      if ( key != "file_name" )
         try { background[key] = val } catch(e){}


local AMArtwork2 = fe.add_artwork( props[aspect]["AMArtwork2"].file_name, -1, -1, 1, 1)
   foreach( key, val in props[aspect]["AMArtwork2"] )
      if ( key != "file_name" )
         try { AMArtwork2[key] = val } catch(e) {  }
  now here is the same thing,  in am
Code: [Select]
fe.layout.width=1920;
fe.layout.height=1080;

local bg = fe.add_image( "white.png", 0, 0, 1920, 2080 );
local snap = fe.add_artwork( "snap", 200, 200, 100, 100 );
  the onley diff is his is picking your screen size to adjust all the objects,   
help a friend....

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: AM-Builder tutorial ?!
« Reply #9 on: February 10, 2022, 06:17:43 PM »
not realy a newbe thign in my opinion..but u decide..
help a friend....

Sebiohazard

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Re: AM-Builder tutorial ?!
« Reply #10 on: February 25, 2022, 10:28:40 PM »
Hello

I'm trying to use AM Builder online but I don't understand why I can't get a full view of my project? When I load an image from my PC it does not appear completely (see below):



How to proceed thanks ?
« Last Edit: February 25, 2022, 10:30:54 PM by Sebiohazard »

Mark Norville

  • Sr. Member
  • ****
  • Posts: 233
    • View Profile
Re: AM-Builder tutorial ?!
« Reply #11 on: February 25, 2022, 10:46:23 PM »
We are NOTHING to do with AM Builder, it is an independent piece of software.

This is the forum for attract mode, and it is NOTHING to do with AM Builder.

You have it set to 4:3 ratio so try 16:9 would be my only guess. Top left hand corner, your skin res is 1920 x 1080 and you are 4:3.

Regards

Mark

In the Attract Mode forum which has NOTHING to do with AM Builder.
« Last Edit: February 25, 2022, 10:59:38 PM by Mark Norville »
Well I am back a new PC I7 4790K, 780 TI, 16 Gigs, Windows 10. Hopefully will get delivered at weekend.

Computer Specs : I7 3770K, 780 TI, 16 Gigs, Win 10
HD Specs : 1 x 1 TB SSD + 4 x 8 TB = 33 TB (fullish)
First system : ZX81 (Yes I am an old fart)
PS Network : MarkNorvile
Xbox : Mark Norville

Sebiohazard

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Re: AM-Builder tutorial ?!
« Reply #12 on: February 25, 2022, 11:04:58 PM »
You have it set to 4:3 ratio so try 16:9 would be my only guess. Top left hand corner, your skin res is 1920 x 1080 and you are 4:3.
In the Attract Mode forum which has NOTHING to do with AM Builder.

Hello I tried 4:3 & 16:9 it doesn't change anything the image is never full screen ?! Is there any other software to create themes ?

Greetings !

Mark Norville

  • Sr. Member
  • ****
  • Posts: 233
    • View Profile
Re: AM-Builder tutorial ?!
« Reply #13 on: February 25, 2022, 11:10:00 PM »
No it is all done by hand, if that is your best option then I would stick to it and try and learn how to use it.

However, you need to realise that this has nothing to do with Attract Mode, and it is like me owning a Ford car, and then asking for help in Tesla forum on how to fix the car.

If you need help then you should be asking on their git hub page or trying to find a forum for it, but I doubt if there is one.

As I am still waking up I will give it a try and see if it works for me.

I done a quick skin from the supplied file from above, I saved it tried it and it would show in a tiny box in the top left hand corner of my screen, so that is going to be another issue for you to try and sort out.

Regards

Mark
« Last Edit: February 25, 2022, 11:26:57 PM by Mark Norville »
Well I am back a new PC I7 4790K, 780 TI, 16 Gigs, Windows 10. Hopefully will get delivered at weekend.

Computer Specs : I7 3770K, 780 TI, 16 Gigs, Win 10
HD Specs : 1 x 1 TB SSD + 4 x 8 TB = 33 TB (fullish)
First system : ZX81 (Yes I am an old fart)
PS Network : MarkNorvile
Xbox : Mark Norville

Sebiohazard

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Re: AM-Builder tutorial ?!
« Reply #14 on: February 25, 2022, 11:38:15 PM »
But how do all these people create themes on Attract Mode ? There must be a procedure for beginners like me :) ?