New features: switch/case

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

Message
Author
Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

New features: switch/case

#1 Post by Kaspy »

Image

User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: New features: switch/case

#2 Post by kLabMouse »

Nice Feature! Macro Plugin getting more and more Flexible now!

ptcarino
Plain Yogurt
Plain Yogurt
Posts: 62
Joined: 17 Jul 2010, 00:48
Noob?: No
Location: pRO Valkyrie

Re: New features: switch/case

#3 Post by ptcarino »

has it been implimented? i updated my macro through svn and it didn't recognize the switch statement. i used the sample in the wiki to test.
Image

Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: New features: switch/case

#4 Post by Kaspy »

Image

You updated the address of SVN? Here worked perfectly.
Image

ptcarino
Plain Yogurt
Plain Yogurt
Posts: 62
Joined: 17 Jul 2010, 00:48
Noob?: No
Location: pRO Valkyrie

Re: New features: switch/case

#5 Post by ptcarino »

KeplerBR wrote:Image

You updated the address of SVN? Here worked perfectly.
maybe i just need a fresh copy. even the 'elseif' can't be recognized. i'll let you know if i made it work ;)
Image

ptcarino
Plain Yogurt
Plain Yogurt
Posts: 62
Joined: 17 Jul 2010, 00:48
Noob?: No
Location: pRO Valkyrie

Re: New features: switch/case

#6 Post by ptcarino »

well it's working now. maybe something wrong with my old copy (i did change the svn url to the new one).

one question though. why is it that the folder structure of macro plugin differs when i download the entire plugin folder and when i only download the macro plugin. it's like this:

entire plugins folder download:

let's call this example A

plugins
|-- macro
| |-- branches (with subfolders)
| |-- deprecated
| |-- tags (with subfolders)
| |-- trunk
| | |-- Macro
| | |-- test
| | |-- macro.pl

wherein if i get the direct svn url of the macro plugin:

let's call this example B

plugins
|-- macro
| |-- Macro (with subfolders)
| |-- test
| |-- macro.pl

the problem here is that openkore won't load the macro plugin on example A because he doesn't look for it in the trunk folder.
Image

Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: New features: switch/case

#7 Post by Kaspy »

The reason is that the SVN is for developers.

branches: folder to store codes on developments
deprecated: outdated files and no longer supported in the latest versions
tags: other versions
trunk: last version of the code currently in use and
Image

ptcarino
Plain Yogurt
Plain Yogurt
Posts: 62
Joined: 17 Jul 2010, 00:48
Noob?: No
Location: pRO Valkyrie

Re: New features: switch/case

#8 Post by ptcarino »

KeplerBR wrote:The reason is that the SVN is for developers.

branches: folder to store codes on developments
deprecated: outdated files and no longer supported in the latest versions
tags: other versions
trunk: last version of the code currently in use and
i see now. so it's best to just checkout the macro trunk rather than getting it from the plugins folder checkout. thanks!
Image

Post Reply