Made a String outlet/inlet - do i need to modify the patcher?


#1

Just wondering if the reason the string outlets are not showing on a subpatch object is because the patcher is not being told to do so. Are the commands the ones found in the .java sources?

Here is the code I've modified for the patch/outlet object - its correct right?

 <license>BSD</license>
      <inlets>
         <charptr32 name="outlet" description="outlet"/>
      </inlets>
      <outlets/>
      <displays/>
      <params/>
      <attribs/>
      <code.declaration><![CDATA[char *_outlet;
]]></code.declaration>
      <code.krate><![CDATA[  _outlet = (char *)inlet_outlet;
]]></code.krate>

been making some big muxer objects lately and would be cool to make them into subpatches so i can reuse instances instead of having large networks in the master patch :smile:


#2

"inlet" and "outlet" objects rely on some magic in the code generator java code (in Patch.java).


#3

hmm i guess ill experiment! i assume i get the sources, compile a modified patcher and everything will magically work :smile:


#4

A github pull request would be welcome if you develop and test this!


#5

trying to compile with netbeans but it seems its a bit changed since beta - too beginner to understand how to fix these errors:

**edit: well they arent really errors, i just dont have git or curl setup on this windows install in the right way. researching how to get Git and Curl for mingw..

ant -f C:\\Users\\alex\\Downloads\\Axoloti-clone -Dnb.internal.action.name=build jar
calc.build.version:
Execute failed: java.io.IOException: Cannot run program "git" (in directory "C:\Users\alex\Downloads\Axoloti-clone"): CreateProcess error=2, The system cannot find the file specified
 calculated ${build.version}
create.build.version:
init:
Deleting: C:\Users\alex\Downloads\Axoloti-clone\build\built-jar.properties
deps-jar:
Updating property file: C:\Users\alex\Downloads\Axoloti-clone\build\built-jar.properties
Compiling 1 source file to C:\Users\alex\Downloads\Axoloti-clone\build\classes
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
compile:
Building jar: C:\Users\alex\Downloads\Axoloti-clone\dist\Axoloti.jar
calc.short.version:
Execute failed: java.io.IOException: Cannot run program "git" (in directory "C:\Users\alex\Downloads\Axoloti-clone"): CreateProcess error=2, The system cannot find the file specified
 calculated short ${
userguide:
generate user guide
Execute failed: java.io.IOException: Cannot run program "curl" (in directory "C:\Users\alex\Downloads\Axoloti-clone"): CreateProcess error=2, The system cannot find the file specified
bundle:
runtime:
Warning: Setting Codebase manifest attribute to '*' due to current JNLP Codebase. Set manifest.custom.codebase property to override the non-secure value '*'.
jnlp:
jar:
BUILD SUCCESSFUL (total time: 1 second)

#6

not doing it right it seems - ive finally setup a github clone and ran the project with netbeans. during compilation i now have these errors:

ant -f C:\\Users\\alex\\Documents\\ClonedAxoloti\\axoloti -Dnb.internal.action.name=build jar
calc.build.version:
 calculated 1.0.3-58-g2b568c5
create.build.version:
init:
deps-jar:
Created dir: C:\Users\alex\Documents\ClonedAxoloti\axoloti\build
Updating property file: C:\Users\alex\Documents\ClonedAxoloti\axoloti\build\built-jar.properties
Created dir: C:\Users\alex\Documents\ClonedAxoloti\axoloti\build\classes
Created dir: C:\Users\alex\Documents\ClonedAxoloti\axoloti\build\empty
Created dir: C:\Users\alex\Documents\ClonedAxoloti\axoloti\build\generated-sources\ap-source-output
Compiling 356 source files to C:\Users\alex\Documents\ClonedAxoloti\axoloti\build\classes
warning: [options] bootstrap class path not set in conjunction with -source 1.6
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
Copying 10 files to C:\Users\alex\Documents\ClonedAxoloti\axoloti\build\classes
compile:
Building jar: C:\Users\alex\Documents\ClonedAxoloti\axoloti\dist\Axoloti.jar
calc.short.version:
 calculated short 1.0.3
userguide:
generate user guide
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100 16609    0 16609    0     0  66702      0 --:--:-- --:--:-- --:--:-- 66702
bundle:
runtime:
Copying 1 file to C:\Users\alex\Documents\ClonedAxoloti\axoloti\build
Warning: Setting Codebase manifest attribute to '*' due to current JNLP Codebase. Set manifest.custom.codebase property to override the non-secure value '*'.
jnlp:
jar:
BUILD SUCCESSFUL (total time: 6 seconds)

running the app will result in a stuck loading screen.

i didnt get the dependencies though. It also seems the old instructions and docs need to be updated :smile:


#7

Those are warnings, you can ignore them.


#8

the magic happens in both of the patch.java files right? one in generatedobjects/ and one in axoloti/


#9

:open_mouth:

but cant really test it since i cant into compiling the rest of the stuff to update my axo and work with the new patcher


#10

ok testing now. so far it is ok! was just very boring copy pasting that was required for the patcher.java stuff. and totally guessed what was needed for the axo.

*** tried to do a pull request but something went wrong here (windows github client) . Will sort it out


#11

hopefully im getting it right. pull created.